From 149cdff204e16da0b15b808fa24402cf67c106c1 Mon Sep 17 00:00:00 2001 From: David Black Date: Thu, 2 May 2013 12:21:16 +0100 Subject: [PATCH] ShowCaseView (Androzic fork thereof) srclib --- fdroidserver/common.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 18c593d7..72d98d28 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1785,6 +1785,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): vcs.gotorevision(ref) return sdir + if name == 'ShowCase-Androzic': + sdir = os.path.join(extlib_dir, 'ShowCase-Androzic') + vcs = getvcs('git', + 'https://github.com/andreynovikov/ShowcaseView', 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 ShowCase project') + if basepath: + return sdir + return libdir + raise BuildException('Unknown srclib ' + name)