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

two srclibs: HoloColorPicker and ChartLib

This commit is contained in:
David Black 2013-02-27 14:25:22 +00:00
parent fa461543ad
commit 99a4ca87b0

View File

@ -1546,6 +1546,28 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
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)