vcs.gotorevision(tag)
# Only process tags where the manifest exists...
- if os.path.exists(build_dir + '/AndroidManifest.xml'):
+ if os.path.exists(os.path.join(build_dir, 'AndroidManifest.xml')):
version, vercode, package = common.parse_androidmanifest(build_dir)
if package and package == app['id'] and version and vercode:
if int(vercode) > int(hcode):
def gettags(self):
self.checkrepo()
- return os.listdir(self.local+'/.git/svn/refs/remotes/tags')
+ return os.listdir(os.path.join(self.local, '/.git/svn/refs/remotes/tags'))
class vcs_svn(vcs):
version = None
vercode = None
package = None
- for line in file(app_dir + '/AndroidManifest.xml'):
+ for line in file(os.path.join(app_dir, 'AndroidManifest.xml')):
if not package:
matches = psearch(line)
if matches:
vercode = matches.group(1)
if version:
return (version, vercode, package)
- for xmlfile in glob.glob(app_dir + '/res/values/strings*transl*.xml'):
+ for xmlfile in glob.glob(os.path.join(
+ app_dir, 'res', 'values', 'strings*transl*.xml')):
for line in file(xmlfile):
if not version:
matches = vnsearch_xml(line)
if matches:
version = matches.group(2)
if not version:
- for line in file(app_dir + '/res/values/strings.xml'):
+ for line in file(os.path.join(app_dir, 'res/values/strings.xml')):
if not version:
matches = vnsearch_xml(line)
if matches:
print 'Force-removing old build.xml'
os.remove(buildxml)
for d in update_dirs:
- cwd = root_dir + '/' + d
+ cwd = os.path.join(root_dir, d)
if verbose:
print "Update of '%s': exec '%s' in '%s'"%\
(d," ".join(parms),cwd)