From 3372a5fb25b834c23904883cbfee55d0aff77fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 20 Nov 2013 19:08:59 +0100 Subject: [PATCH] Small fix to keysigning cleaning output --- fdroidserver/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 9cd375da..f46880b2 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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)