one srclib, k9Mail via jberkel

This commit is contained in:
David Black 2013-01-14 11:34:13 +00:00
parent 9b82009870
commit 6d9982dc00

View file

@ -1448,6 +1448,17 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
return sdir
return libdir
if name == 'K9Mail-XOAuth':
sdir = os.path.join(extlib_dir, 'K9Mail-XOAUTH')
vcs = getvcs('git',
'https://github.com/jberkel/k9mail.git', sdir, sdk_path)
vcs.gotorevision(ref)
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
'update', 'project', '-p',
sdir]) != 0:
raise BuildException('Error updating KMail-XOAUTH project')
return sdir
raise BuildException('Unknown srclib ' + name)