1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

NineOldAndroids srclib (dependency of ShowCase-Androzic)

This commit is contained in:
David Black 2013-05-02 13:04:38 +01:00
parent 149cdff204
commit 3621a9a5f5

View File

@ -1792,13 +1792,27 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
vcs.gotorevision(ref)
libdir = os.path.join(sdir, 'library')
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
'update', 'project', '-p',
'update', 'project', '-l', '../../NineOldAndroids/library', '-p',
libdir]) != 0:
raise BuildException('Error updating ShowCase project')
if basepath:
return sdir
return libdir
if name == 'NineOldAndroids':
sdir = os.path.join(extlib_dir, 'NineOldAndroids')
vcs = getvcs('git',
'https://github.com/JakeWharton/NineOldAndroids', sdir, sdk_path)
vcs.gotorevision(ref)
libdir = os.path.join(sdir, 'library')
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
'update', 'project', '-p',
libdir]) != 0:
raise BuildException('Error updating NineOldAndroids project')
if basepath:
return sdir
return libdir
raise BuildException('Unknown srclib ' + name)