mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
NineOldAndroids srclib (dependency of ShowCase-Androzic)
This commit is contained in:
parent
149cdff204
commit
3621a9a5f5
1 changed files with 15 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue