# from sdk.dir, if necessary
if build['oldsdkloc']:
sdkloc = re.match(r".*^sdk.dir=(\S+)$.*", props,
- re.S|re.M).group(1)
+ re.S | re.M).group(1)
props += "sdk-location=%s\n" % sdkloc
else:
props += "sdk.dir=%s\n" % config['sdk_path']
return (repotype, repo)
# Works for Google Code and BitBucket...
- index=page.find('git clone')
+ index = page.find('git clone')
if index != -1:
repotype = 'git'
repo = page[index + 10:]
return (repotype, repo)
# Google Code only...
- index=page.find('svn checkout')
+ index = page.find('svn checkout')
if index != -1:
repotype = 'git-svn'
repo = page[index + 13:]
for dev in devs:
logging.info("Installing %s on %s..." % (apk, dev))
p = FDroidPopen(["adb", "-s", dev, "install", apk])
- fail= ""
+ fail = ""
for line in p.stdout.splitlines():
if line.startswith("Failure"):
fail = line[9:-1]
p = FDroidPopen(['keytool', '-list',
'-alias', keyalias, '-keystore', config['keystore'],
'-storepass:file', config['keystorepassfile']])
- if p.returncode !=0:
+ if p.returncode != 0:
logging.info("Key does not exist - generating...")
p = FDroidPopen(['keytool', '-genkey',
'-keystore', config['keystore'], '-alias', keyalias,
parser.add_option("-I", "--icons", action="store_true", default=False,
help="Resize all the icons exceeding the max pixel size and exit")
parser.add_option("-e", "--editor", default="/etc/alternatives/editor",
- help="Specify editor to use in interactive mode. Default "+
+ help="Specify editor to use in interactive mode. Default " +
"is /etc/alternatives/editor")
parser.add_option("-w", "--wiki", default=False, action="store_true",
help="Update the wiki")