mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
DragSort srclib
This commit is contained in:
parent
29c428ea3e
commit
7c5a9793ad
@ -1745,6 +1745,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
|
|||||||
shutil.rmtree(os.path.join(sdir, 'downloads'))
|
shutil.rmtree(os.path.join(sdir, 'downloads'))
|
||||||
return libdir
|
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)
|
raise BuildException('Unknown srclib ' + name)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user