Move scan_source into scanner.py

Not really a common.py thing.
This commit is contained in:
Daniel Martí 2015-08-28 19:20:39 -07:00
parent 925fbee3b9
commit 120be4334d
3 changed files with 217 additions and 215 deletions

View file

@ -35,6 +35,7 @@ import logging
import common
import metadata
import scanner
from common import FDroidException, BuildException, VCSException, FDroidPopen, SdkToolsPopen
try:
@ -555,7 +556,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
else:
# Scan before building...
logging.info("Scanning source for common problems...")
count = common.scan_source(build_dir, root_dir, thisbuild)
count = scanner.scan_source(build_dir, root_dir, thisbuild)
if count > 0:
if force:
logging.warn('Scanner found %d problems' % count)