chiark / gitweb /
Remove key.store from default.properties as well
authorHenrik Tunedal <tunedal@gmail.com>
Sat, 26 Feb 2011 23:40:20 +0000 (00:40 +0100)
committerHenrik Tunedal <tunedal@gmail.com>
Sat, 26 Feb 2011 23:40:20 +0000 (00:40 +0100)
build.py

index 3f816d1a99313061bb650edfe206a9464ff8957d..16add9bfb2bfc96718ed92b837b8f07d258267d3 100755 (executable)
--- 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')