mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 07:52:35 +03:00
Don't allow --skip-scan if scandelete is set up
This commit is contained in:
parent
347ff7b876
commit
9b200f47d8
1 changed files with 4 additions and 1 deletions
|
@ -534,7 +534,10 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
|
||||||
if 'gradle' in dirs:
|
if 'gradle' in dirs:
|
||||||
shutil.rmtree(os.path.join(root, 'gradle'))
|
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...
|
# Scan before building...
|
||||||
logging.info("Scanning source for common problems...")
|
logging.info("Scanning source for common problems...")
|
||||||
count = common.scan_source(build_dir, root_dir, thisbuild)
|
count = common.scan_source(build_dir, root_dir, thisbuild)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue