chiark / gitweb /
Respect options.verbose a bit more in build.py
authorCiaran Gultnieks <ciaran@ciarang.com>
Sun, 29 Jan 2012 07:50:38 +0000 (07:50 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sun, 29 Jan 2012 07:50:38 +0000 (07:50 +0000)
build.py

index f084a80b622b86b31317f1621de43575b7e08131..b2c4c852a96fda3732c1670fa30df361501c6e5c 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -85,11 +85,12 @@ for app in apps:
         # Silent skip...
         pass
     elif app['Disabled']:
-        print "Skipping %s: disabled" % app['id']
+        if options.verbose:
+            print "Skipping %s: disabled" % app['id']
     elif (not app['builds']) or app['Repo Type'] =='' or len(app['builds']) == 0:
-        print "Skipping %s: no builds specified" % app['id']
+        if options.verbose:
+            print "Skipping %s: no builds specified" % app['id']
     else:
-        print "Processing " + app['id']
 
         build_dir = 'build/' + app['id']
 
@@ -107,12 +108,18 @@ for app in apps:
                         thisbuild['vercode'] + '_unsigned.apk')
 
                 if os.path.exists(dest):
-                    print "..version " + thisbuild['version'] + " already exists"
+                    if options.verbose:
+                        print "..version " + thisbuild['version'] + " already exists"
                 elif thisbuild['commit'].startswith('!'):
-                    print ("..skipping version " + thisbuild['version'] + " - " +
+                    if options.verbose:
+                        print ("..skipping version " + thisbuild['version'] + " - " +
                             thisbuild['commit'][1:])
                 else:
-                    print "..building version " + thisbuild['version']
+                    if options.verbose:
+                        mstart = '.. building version '
+                    else:
+                        mstart = 'Building version '
+                    print mstart + thisbuild['version'] + ' of ' + app['id']
 
                     # Prepare the source code...
                     root_dir = common.prepare_source(vcs, app, thisbuild,