mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
scan_source: print problems, only return the total count
This commit is contained in:
parent
d6289b7832
commit
0c11f7bc49
2 changed files with 23 additions and 23 deletions
|
|
@ -445,14 +445,12 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
|
|||
if not options.skipscan:
|
||||
# Scan before building...
|
||||
logging.info("Scanning source for common problems...")
|
||||
buildprobs = common.scan_source(build_dir, root_dir, thisbuild)
|
||||
if len(buildprobs) > 0:
|
||||
logging.warn('Scanner found %d problems:' % len(buildprobs))
|
||||
for problem in buildprobs:
|
||||
logging.info(' %s' % problem)
|
||||
if not force:
|
||||
raise BuildException("Can't build due to " +
|
||||
str(len(buildprobs)) + " scanned problems")
|
||||
count = common.scan_source(build_dir, root_dir, thisbuild)
|
||||
if count > 0:
|
||||
if force:
|
||||
logging.warn('Scanner found %d problems:' % count)
|
||||
else:
|
||||
raise BuildException("Can't build due to %d scanned problems" % count)
|
||||
|
||||
if not options.notarball:
|
||||
# Build the source tarball right before we build the release...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue