mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
scanner: use -p check like in build.py, give error if package does not exist
This commit is contained in:
parent
08ec659441
commit
fc621a8ad6
@ -50,6 +50,13 @@ def main():
|
|||||||
# Get all apps...
|
# Get all apps...
|
||||||
apps = common.read_metadata(options.verbose)
|
apps = common.read_metadata(options.verbose)
|
||||||
|
|
||||||
|
# Filter apps according to command-line options
|
||||||
|
if options.package:
|
||||||
|
apps = [app for app in apps if app['id'] == options.package]
|
||||||
|
if len(apps) == 0:
|
||||||
|
print "No such package"
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
html_parser = HTMLParser.HTMLParser()
|
html_parser = HTMLParser.HTMLParser()
|
||||||
|
|
||||||
problems = []
|
problems = []
|
||||||
@ -59,9 +66,7 @@ def main():
|
|||||||
for app in apps:
|
for app in apps:
|
||||||
|
|
||||||
skip = False
|
skip = False
|
||||||
if options.package and app['id'] != options.package:
|
if app['Disabled']:
|
||||||
skip = True
|
|
||||||
elif app['Disabled']:
|
|
||||||
print "Skipping %s: disabled" % app['id']
|
print "Skipping %s: disabled" % app['id']
|
||||||
skip = True
|
skip = True
|
||||||
elif not app['builds']:
|
elif not app['builds']:
|
||||||
|
Loading…
Reference in New Issue
Block a user