mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-09 00:40:29 +03:00
Merge commit 'refs/merge-requests/102' of git://gitorious.org/f-droid/fdroidserver into merge-requests/102
This commit is contained in:
commit
87a7cb4878
1 changed files with 32 additions and 0 deletions
|
|
@ -1289,6 +1289,38 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
|
|||
vcs.gotorevision(ref)
|
||||
return sdir
|
||||
|
||||
if name == 'Slider':
|
||||
sdir = os.path.join(extlib_dir, 'Slider')
|
||||
vcs = getvcs('git',
|
||||
'https://github.com/Xlythe/Slider', 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 Slider project')
|
||||
return sdir
|
||||
|
||||
if name == 'NumberPicker':
|
||||
sdir = os.path.join(extlib_dir, 'NumberPicker')
|
||||
vcs = getvcs('git',
|
||||
'https://github.com/thibault/NumberPickerWidget.git', sdir, sdk_path)
|
||||
vcs.gotorevision(ref)
|
||||
return sdir
|
||||
|
||||
if name == 'RootCommands':
|
||||
sdir = os.path.join(extlib_dir, 'RootCommands')
|
||||
vcs = getvcs('git',
|
||||
'https://github.com/dschuermann/root-commands.git', sdir, sdk_path)
|
||||
vcs.gotorevision(ref)
|
||||
libdir = os.path.join(sdir, 'RootCommands Library')
|
||||
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
|
||||
'update', 'project', '-p',
|
||||
libdir]) != 0:
|
||||
raise BuildException('Error updating RootCommands project')
|
||||
if basepath:
|
||||
return sdir
|
||||
return libdir
|
||||
|
||||
raise BuildException('Unknown srclib ' + name)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue