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

DragSort srclib

This commit is contained in:
David Black 2013-04-24 17:01:50 +01:00
parent 29c428ea3e
commit 7c5a9793ad

View File

@ -1745,6 +1745,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
shutil.rmtree(os.path.join(sdir, 'downloads'))
return libdir
if name == 'DragSort':
sdir = os.path.join(extlib_dir, 'DragSort')
vcs = getvcs('git',
'https://github.com/bauerca/drag-sort-listview', 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 DragSort project')
if basepath:
return sdir
return libdir
raise BuildException('Unknown srclib ' + name)