chiark / gitweb /
Additional srclib
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 25 Jun 2012 08:22:27 +0000 (09:22 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 25 Jun 2012 08:22:27 +0000 (09:22 +0100)
fdroidserver/common.py

index beb6431f877aae09c436b713e823e536660e620b..2a7024d1178d9e378991a3252c8246d65f3133ee 100644 (file)
@@ -643,6 +643,16 @@ def getsrclib(spec, extlib_dir):
             raise BuildException('Error updating ActionBarSherlock project')
         return libdir
 
+    if name == 'ViewPagerIndicator':
+        sdir = os.path.join(extlib_dir, 'ViewPagerIndicator')
+        vcs = getvcs('git',
+            'https://github.com/mariotaku/viewpagerindicator.git', sdir)
+        vcs.gotorevision(ref)
+        if subprocess.call(['android', 'update', 'project', '-p',
+            sdir]) != 0:
+            raise BuildException('Error updating ViewPagerIndicator project')
+        return sdir
+
     if name == 'ActionBar':
         sdir = os.path.join(extlib_dir, 'ActionBar')
         vcs = getvcs('git',