From 3621a9a5f593168d84bf5c0fdc4b21693898fd8a Mon Sep 17 00:00:00 2001 From: David Black Date: Thu, 2 May 2013 13:04:38 +0100 Subject: [PATCH] NineOldAndroids srclib (dependency of ShowCase-Androzic) --- fdroidserver/common.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 72d98d28..4fffc937 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1792,13 +1792,27 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): vcs.gotorevision(ref) libdir = os.path.join(sdir, 'library') if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), - 'update', 'project', '-p', + 'update', 'project', '-l', '../../NineOldAndroids/library', '-p', libdir]) != 0: raise BuildException('Error updating ShowCase project') if basepath: return sdir return libdir + if name == 'NineOldAndroids': + sdir = os.path.join(extlib_dir, 'NineOldAndroids') + vcs = getvcs('git', + 'https://github.com/JakeWharton/NineOldAndroids', 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 NineOldAndroids project') + if basepath: + return sdir + return libdir + raise BuildException('Unknown srclib ' + name)