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:
parent
149cdff204
commit
3621a9a5f5
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user