Package filter on checkupdates, as per all other similar scripts

This commit is contained in:
Ciaran Gultnieks 2012-01-23 21:26:51 +00:00
parent aae03e661e
commit f80e8edf38

View file

@ -63,6 +63,8 @@ def check_market(app):
parser = OptionParser()
parser.add_option("-v", "--verbose", action="store_true", default=False,
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()
# Get all apps...
@ -72,6 +74,10 @@ html_parser = HTMLParser.HTMLParser()
for app in apps:
if options.package and options.package != app['id']:
# Silent skip...
pass
else:
print "Processing " + app['id'] + '...'
mode = app['Update Check Mode']