From 43e38f23202cf0d1c3fa93982e2cd1d05e533085 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Fri, 31 Aug 2012 15:35:26 +0100 Subject: [PATCH] Added two new srclibs - UITableView and ViewPagerTabs --- fdroidserver/common.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 781a6f39..06f1b648 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -716,6 +716,27 @@ def getsrclib(spec, extlib_dir): raise BuildException('Error updating ViewPagerIndicator project') return sdir + if name == 'UITableView': + sdir = os.path.join(extlib_dir, 'UITableView') + vcs = getvcs('git', + 'https://github.com/thiagolocatelli/android-uitableview.git', sdir) + vcs.gotorevision(ref) + libdir = os.path.join(sdir, 'android-uitableview') + if subprocess.call(['android', 'update', 'project', '-p', + libdir]) != 0: + raise BuildException('Error updating UITableView project') + return libdir + + if name == 'ViewPagerTabs': + sdir = os.path.join(extlib_dir, 'ViewPagerTabs') + vcs = getvcs('git', + 'https://github.com/astuetz/android-viewpagertabs.git', sdir) + vcs.gotorevision(ref) + if subprocess.call(['android', 'update', 'project', '-p', + sdir]) != 0: + raise BuildException('Error updating ViewPagerTabs project') + return sdir + if name == 'ActionBar': sdir = os.path.join(extlib_dir, 'ActionBar') vcs = getvcs('git', -- 2.30.2