1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

srclib: KoushWidgets for Clockworkmod Superuser

This commit is contained in:
David Black 2013-02-25 12:02:31 +00:00
parent da071715e1
commit fa461543ad

View File

@ -1532,6 +1532,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
vcs.gotorevision(ref) vcs.gotorevision(ref)
return sdir 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
raise BuildException('Unknown srclib ' + name) raise BuildException('Unknown srclib ' + name)