From 117b3c2400e456b29fdff7ebd5c24b35488aa543 Mon Sep 17 00:00:00 2001 From: David Black Date: Wed, 24 Apr 2013 18:25:37 +0100 Subject: [PATCH] QuickdicUtils srclib --- fdroidserver/common.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 0469d3f1..614fcd18 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1759,6 +1759,17 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): return sdir return libdir + if name == 'QuickdicUtils': + sdir = os.path.join(extlib_dir, 'QuickdicUtils') + vcs = getvcs('git', + 'https://code.google.com/p/quickdic-dictionary.util', 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 QuickdicUtils project') + return sdir + raise BuildException('Unknown srclib ' + name)