chiark / gitweb /
Don't forcefully remove libs/<arch>, we now see binaries
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 6 Jan 2014 11:08:57 +0000 (12:08 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 9 Jan 2014 15:23:48 +0000 (16:23 +0100)
fdroidserver/build.py
fdroidserver/common.py

index 5e2b4846cc3de635191d7466273adbcd9ab7ad0a..6bbb87d4657f1a1fed5ddcf054d30ea16937112f 100644 (file)
@@ -420,16 +420,6 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
         raise BuildException("Error cleaning %s:%s" %
                 (app['id'], thisbuild['version']), p.stdout, p.stderr)
 
-    # Also clean jni
-    print "Cleaning jni dirs..."
-    for baddir in [
-            'libs/armeabi-v7a', 'libs/armeabi',
-            'libs/mips', 'libs/x86', 'obj']:
-        badpath = os.path.join(build_dir, baddir)
-        if os.path.exists(badpath):
-            print "Removing '%s'" % badpath
-            shutil.rmtree(badpath)
-
     # Scan before building...
     print "Scanning source for common problems..."
     buildprobs = common.scan_source(build_dir, root_dir, thisbuild)
index aefa78de10fd43c526068838cac5e1ad899fee4e..47a006b4a1529932a9b99759d3f1d1583c476e0b 100644 (file)
@@ -943,10 +943,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
         for d in update_dirs:
             # Remove gen and bin dirs in libraries
             # rid of them...
-            for baddir in [
-                    'gen', 'bin', 'obj', # ant
-                    'libs/armeabi-v7a', 'libs/armeabi', # jni
-                    'libs/mips', 'libs/x86']:
+            for baddir in ['gen', 'bin', 'obj']
                 badpath = os.path.join(root_dir, d, baddir)
                 if os.path.exists(badpath):
                     print "Removing '%s'" % badpath