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()
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)