mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
Don't allow --skip-scan if scandelete is set up
This commit is contained in:
parent
347ff7b876
commit
9b200f47d8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user