thisbuild['version'] = parts[0]
thisbuild['vercode'] = parts[1]
try:
- testvercode = int(thisbuild['vercode'])
+ int(thisbuild['vercode'])
except:
raise MetaDataException("Invalid version code for build in " + metafile.name)
if parts[2].startswith('!'):
curbuild['version'] = vv[0]
curbuild['vercode'] = vv[1]
try:
- testvercode = int(curbuild['vercode'])
+ int(curbuild['vercode'])
except:
raise MetaDataException("Invalid version code for build in " + metafile.name)
buildlines = []
app_search = re.compile(r'.*<application.*').search
name_search = re.compile(r'.*android:label="([^"]+)".*').search
app_found = False
- name = None
for f in manifest_paths(app_dir, flavour):
if not f.endswith(".xml"):
continue
if metafile is None:
return thisinfo
- mode = 0
- buildlines = []
-
for line in metafile:
line = line.rstrip('\r\n')
if len(line) == 0:
# Run a pre-build command if one is required...
if 'prebuild' in build:
- output = ''
- error = ''
cmd = build['prebuild']
# Substitute source library paths into prebuild commands...
import os
import traceback
from optparse import OptionParser
-import HTMLParser
import common
from common import BuildException
from common import VCSException
print "No such package"
sys.exit(1)
- html_parser = HTMLParser.HTMLParser()
-
problems = []
build_dir = 'build'
statsdir = 'stats'
logsdir = os.path.join(statsdir, 'logs')
- logsarchivedir = os.path.join(logsdir, 'archive')
datadir = os.path.join(statsdir, 'data')
if not os.path.exists(statsdir):
os.mkdir(statsdir)
os.path.getsize(destpath) != destsize):
print "...retrieving " + f
ftp.get(f, destpath)
- except Exception as e:
+ except Exception:
traceback.print_exc()
sys.exit(1)
finally:
addElement('sdkver', str(apk['sdkversion']), doc, apkel)
if 'added' in apk:
addElement('added', time.strftime('%Y-%m-%d', apk['added']), doc, apkel)
- perms = ""
if app['Requires Root']:
if 'ACCESS_SUPERUSER' not in apk['permissions']:
apk['permissions'].append('ACCESS_SUPERUSER')