1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

checkupdates: use -p check like in build.py, give error if package does not exist

This commit is contained in:
Tias Guns 2012-03-11 21:30:17 +00:00 committed by Tias Guns
parent 409fd273b6
commit ab0ed81702

View File

@ -130,12 +130,14 @@ def main():
# Get all apps...
apps = common.read_metadata(options.verbose)
for app in apps:
# 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)
if options.package and options.package != app['id']:
# Silent skip...
pass
else:
for app in apps:
print "Processing " + app['id'] + '...'
mode = app['Update Check Mode']