From 29aca16dca9b5b356008a86c31b1d03fb389db2c Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Thu, 19 Apr 2012 10:56:51 +0100 Subject: [PATCH] Defined additional srclibs --- fdroidserver/common.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index c514f614..beb6431f 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -643,6 +643,28 @@ def getsrclib(spec, extlib_dir): raise BuildException('Error updating ActionBarSherlock project') return libdir + if name == 'ActionBar': + sdir = os.path.join(extlib_dir, 'ActionBar') + vcs = getvcs('git', + 'https://github.com/johannilsson/android-actionbar.git', sdir) + vcs.gotorevision(ref) + libdir = os.path.join(sdir, 'actionbar') + if subprocess.call(['android', 'update', 'project', '-p', + libdir]) != 0: + raise BuildException('Error updating ActionBar project') + return libdir + + if name == 'ActionBarNW': + sdir = os.path.join(extlib_dir, 'ActionBarNW') + vcs = getvcs('git', + 'https://github.com/NightWhistler/android-actionbar.git', sdir) + vcs.gotorevision(ref) + libdir = os.path.join(sdir, 'actionbar') + if subprocess.call(['android', 'update', 'project', '-p', + libdir]) != 0: + raise BuildException('Error updating ActionBarNW project') + return libdir + if name == 'FacebookSDK': sdir = os.path.join(extlib_dir, 'FacebookSDK') vcs = getvcs('git',