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

Add srclib for musicbrainz

This commit is contained in:
Daniel Martí 2013-04-09 23:34:38 +02:00
parent ce371d8b98
commit a05c43d708

View File

@ -1687,6 +1687,16 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
vcs.gotorevision(ref)
return sdir
if name == 'MusicBrainz-API':
sdir = os.path.join(extlib_dir, 'MusicBrainz-API')
vcs = getvcs('git',
'https://github.com/jdamcd/musicbrainz-android', sdir, sdk_path)
vcs.gotorevision(ref)
libdir = os.path.join(sdir, 'api')
if basepath:
return sdir
return libdir
raise BuildException('Unknown srclib ' + name)