mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Package filter on checkupdates, as per all other similar scripts
This commit is contained in:
parent
aae03e661e
commit
f80e8edf38
1 changed files with 26 additions and 20 deletions
|
|
@ -63,6 +63,8 @@ def check_market(app):
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
parser.add_option("-v", "--verbose", action="store_true", default=False,
|
parser.add_option("-v", "--verbose", action="store_true", default=False,
|
||||||
help="Spew out even more information than normal")
|
help="Spew out even more information than normal")
|
||||||
|
parser.add_option("-p", "--package", default=None,
|
||||||
|
help="Build only the specified package")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
# Get all apps...
|
# Get all apps...
|
||||||
|
|
@ -72,6 +74,10 @@ html_parser = HTMLParser.HTMLParser()
|
||||||
|
|
||||||
for app in apps:
|
for app in apps:
|
||||||
|
|
||||||
|
if options.package and options.package != app['id']:
|
||||||
|
# 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