From 09c5c5099339279c723c16b40fb856cf345e43d8 Mon Sep 17 00:00:00 2001 From: Henrik Tunedal Date: Sun, 27 Feb 2011 00:40:20 +0100 Subject: [PATCH] Remove key.store from default.properties as well --- build.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.py b/build.py index 3f816d1a..16add9bf 100755 --- a/build.py +++ b/build.py @@ -202,11 +202,12 @@ for app in apps: # If the app has ant set up to sign the release, we need to switch # that off, because we want the unsigned apk... - if os.path.exists(os.path.join(root_dir, 'build.properties')): - if subprocess.call(['sed','-i','s/^key.store/#/', - 'build.properties'], cwd=root_dir) !=0: - print "Failed to amend build.properties" - sys.exit(1) + for propfile in ('build.properties', 'default.properties'): + if os.path.exists(os.path.join(root_dir, propfile)): + if subprocess.call(['sed','-i','s/^key.store/#/', + propfile], cwd=root_dir) !=0: + print "Failed to amend %s" % propfile + sys.exit(1) # Update the local.properties file... locprops = os.path.join(root_dir, 'local.properties') -- 2.30.2