From: Ciaran Gultnieks Date: Sat, 13 Nov 2010 14:11:48 +0000 (+0000) Subject: Added option to build.py to just do a single package, for testing X-Git-Tag: 0.1~1639 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0af7a9403b6a36ecef9c6d2bd613ef8a5dfce97c;p=fdroidserver.git Added option to build.py to just do a single package, for testing --- diff --git a/build.py b/build.py index a2338bc5..8390dc70 100644 --- a/build.py +++ b/build.py @@ -36,6 +36,8 @@ execfile('metadata.py') 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... @@ -48,7 +50,9 @@ os.mkdir(unsigned_dir) for app in apps: - if app['disabled'] is None and app['repo'] != '' and app['repotype'] != '': + if (app['disabled'] is None and app['repo'] != '' + and app['repotype'] != '' and (options.package is None or + options.package == app['id'])): print "About to build " + app['id']