1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Merge commit 'refs/merge-requests/111' of git://gitorious.org/f-droid/fdroidserver into merge-requests/111

This commit is contained in:
Ciaran Gultnieks 2013-02-27 19:11:32 +00:00
commit a30aa01253

View File

@ -1532,6 +1532,42 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
vcs.gotorevision(ref)
return sdir
if name == 'KoushWidgets':
sdir = os.path.join(extlib_dir, 'KoushWidgets')
vcs = getvcs('git',
'https://github.com/koush/Widgets', sdir, sdk_path)
vcs.gotorevision(ref)
libdir = os.path.join(sdir, 'Widgets')
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
'update', 'project', '-p',
libdir]) != 0:
raise BuildException('Error updating KoushWidgets project')
if basepath:
return sdir
return libdir
if name == 'HoloColorPicker':
sdir = os.path.join(extlib_dir, 'HoloColorPicker')
vcs = getvcs('git',
'https://github.com/frigus02/HoloColorPicker', 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 HoloColorPicker project')
return sdir
if name == 'ChartLib':
sdir = os.path.join(extlib_dir, 'ChartLib')
vcs = getvcs('git',
'https://bitbucket.org/frigus02/chartlib', 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 ChartLib project')
return sdir
raise BuildException('Unknown srclib ' + name)