From 724755194c981ca0ac17a263cb83ab76148f9970 Mon Sep 17 00:00:00 2001 From: David Black Date: Sat, 22 Sep 2012 18:52:52 +0100 Subject: [PATCH] A couple more srclibs --- fdroidserver/common.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 34f0d306..e877a1bb 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1064,6 +1064,17 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): raise BuildException('Error updating EmulatorView project') return libdir + if name == 'Tree-View-List': + sdir = os.path.join(extlib_dir, 'Tree-View-List') + vcs = getvcs('hg', + 'https://code.google.com/p/tree-view-list-android/', 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 Tree-List-View project') + return sdir + raise BuildException('Unknown srclib ' + name)