mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
checkupdates: use -p check like in build.py, give error if package does not exist
This commit is contained in:
parent
409fd273b6
commit
ab0ed81702
@ -130,12 +130,14 @@ def main():
|
|||||||
# Get all apps...
|
# Get all apps...
|
||||||
apps = common.read_metadata(options.verbose)
|
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']:
|
for app in apps:
|
||||||
# Silent skip...
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
print "Processing " + app['id'] + '...'
|
print "Processing " + app['id'] + '...'
|
||||||
|
|
||||||
mode = app['Update Check Mode']
|
mode = app['Update Check Mode']
|
||||||
|
Loading…
Reference in New Issue
Block a user