mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
two srclibs: github api and comic viewer
This commit is contained in:
parent
95f3c3c72c
commit
da7162f5aa
1 changed files with 18 additions and 0 deletions
|
|
@ -1349,6 +1349,24 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
|
||||||
return sdir
|
return sdir
|
||||||
return libdir
|
return libdir
|
||||||
|
|
||||||
|
if name == 'ComicViewer':
|
||||||
|
sdir = os.path.join(extlib_dir, 'ComicViewer')
|
||||||
|
vcs = getvcs('git',
|
||||||
|
'https://github.com/tcoxon/ComicViewer.git', 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 ComicViewer project')
|
||||||
|
return sdir
|
||||||
|
|
||||||
|
if name == 'GitHubAPI':
|
||||||
|
sdir = os.path.join(extlib_dir, 'GitHubAPI')
|
||||||
|
vcs = getvcs('git',
|
||||||
|
'git://git.eclipse.org/gitroot/egit/egit-github.git', sdir, sdk_path)
|
||||||
|
vcs.gotorevision(ref)
|
||||||
|
return sdir
|
||||||
|
|
||||||
raise BuildException('Unknown srclib ' + name)
|
raise BuildException('Unknown srclib ' + name)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue