chiark / gitweb /
Stopped spewing out irrelevant stuff when building a single package
authorCiaran Gultnieks <ciaran@ciarang.com>
Sat, 21 Jan 2012 23:10:59 +0000 (23:10 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sat, 21 Jan 2012 23:10:59 +0000 (23:10 +0000)
build.py

index b69020b5253b2f0fb68f16c5f08d6b7c1ee6b2ce..0fcdcd67e824703088863dc68812ff208b063d3c 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -74,15 +74,14 @@ if not os.path.isdir(build_dir):
 
 for app in apps:
 
-    if app['Disabled']:
+    if options.package and options.package != app['id']:
+        # Silent skip...
+        pass
+    elif app['Disabled']:
         print "Skipping %s: disabled" % app['id']
-    elif not app['builds']:
+    elif (not app['builds']) or app['Repo Type'] =='' or len(app['builds']) == 0:
         print "Skipping %s: no builds specified" % app['id']
-
-    if (app['Disabled'] is None and app['Repo'] != '' 
-            and app['Repo Type'] != '' and (options.package is None or
-            options.package == app['id']) and len(app['builds']) > 0):
-
+    else:
         print "Processing " + app['id']
 
         build_dir = 'build/' + app['id']