chiark / gitweb /
new srclib: RootCommands, needed for Adaway
authorDavid Black <david8black@gmail.com>
Sat, 10 Nov 2012 14:07:00 +0000 (14:07 +0000)
committerDavid Black <david8black@gmail.com>
Sat, 10 Nov 2012 14:07:00 +0000 (14:07 +0000)
fdroidserver/common.py

index 4e8203c7d0cb12090ef411f710328b3f1aa58fb3..0f6803a74964beb286e8e1dbc9f4df53a6089cc2 100644 (file)
@@ -1300,6 +1300,27 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
             raise BuildException('Error updating Slider project')
         return sdir
 
+    if name == 'NumberPicker':
+        sdir = os.path.join(extlib_dir, 'NumberPicker')
+        vcs = getvcs('git',
+           'https://github.com/thibault/NumberPickerWidget.git', sdir, sdk_path)
+        vcs.gotorevision(ref)
+        return sdir
+
+    if name == 'RootCommands':
+        sdir = os.path.join(extlib_dir, 'RootCommands')
+        vcs = getvcs('git',
+           'https://github.com/dschuermann/root-commands.git', sdir, sdk_path)
+        vcs.gotorevision(ref)
+        libdir = os.path.join(sdir, 'RootCommands Library')
+        if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
+            'update', 'project', '-p',
+            libdir]) != 0:
+            raise BuildException('Error updating RootCommands project')
+        if basepath:
+            return sdir
+        return libdir
+
     raise BuildException('Unknown srclib ' + name)