From 2c0f772efd7eabba69df110a5c735a85ad44e5c2 Mon Sep 17 00:00:00 2001 From: David Black Date: Fri, 1 Mar 2013 17:59:01 +0000 Subject: [PATCH] MeterLib srclib --- fdroidserver/common.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index d2289239..c8ced80d 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1568,6 +1568,17 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): raise BuildException('Error updating ChartLib project') return sdir + if name == 'MeterLib': + sdir = os.path.join(extlib_dir, 'MeterLib') + vcs = getvcs('git', + 'https://github.com/zaren678/HdhomerunSignalMeterLib', 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 MeterLib project') + return sdir + raise BuildException('Unknown srclib ' + name)