mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 07:50:28 +03: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
1 changed files with 7 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue