chiark / gitweb /
Small fix to keysigning cleaning output
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 20 Nov 2013 18:08:59 +0000 (19:08 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 20 Nov 2013 18:08:59 +0000 (19:08 +0100)
fdroidserver/common.py

index 9cd375dadaa479927c6903adcf1a1ae7a194ffc5..f46880b2bda1a70b40b8ca3d8c8dcad41fd87015 100644 (file)
@@ -1303,9 +1303,6 @@ def remove_signing_keys(build_dir):
             path = os.path.join(root, 'build.gradle')
             changed = False
 
-            if options.verbose:
-                print "Cleaned build.gradle of keysigning configs at %s" % path
-
             with open(path, "r") as o:
                 lines = o.readlines()
             
@@ -1329,6 +1326,9 @@ def remove_signing_keys(build_dir):
                     else:
                         o.write(line)
 
+            if changed and options.verbose:
+                print "Cleaned build.gradle of keysigning configs at %s" % path
+
         for propfile in ('build.properties', 'default.properties', 'ant.properties'):
             if propfile in files:
                 path = os.path.join(root, propfile)