chiark / gitweb /
Don't allow --skip-scan if scandelete is set up
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 6 Jan 2015 13:40:31 +0000 (14:40 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 6 Jan 2015 13:40:31 +0000 (14:40 +0100)
fdroidserver/build.py

index b942c28e9dc10db6324dcfaacc61fdd2245b187e..f83ab4302d6579a838b7e7be7716725a65d49e50 100644 (file)
@@ -534,7 +534,10 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
             if 'gradle' in dirs:
                 shutil.rmtree(os.path.join(root, 'gradle'))
 
-    if not options.skipscan:
+    if options.skipscan:
+        if thisbuild['scandelete']:
+            raise BuildException("Refusing to skip source scan since scandelete is present")
+    else:
         # Scan before building...
         logging.info("Scanning source for common problems...")
         count = common.scan_source(build_dir, root_dir, thisbuild)