mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +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...
|
||||
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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue