chiark / gitweb /
Merge commit 'refs/merge-requests/115' of git://gitorious.org/f-droid/fdroidserver...
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 18 Mar 2013 17:33:20 +0000 (17:33 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 18 Mar 2013 17:33:20 +0000 (17:33 +0000)
Conflicts:
fdroidserver/common.py

1  2 
fdroidserver/common.py

index f7d1bdda58dbb71c1dc8a8fde8c1b3bc49c90867,9c0452936b96a4e5044664b5c7e3fef30fe4b0ea..f4c79919ac1240557377a79e68f405871eb4aef8
@@@ -1594,17 -1586,27 +1594,38 @@@ def getsrclib(spec, extlib_dir, sdk_pat
          vcs.gotorevision(ref)
          return sdir
  
 +    if name == 'LocaleAPI':
 +        sdir = os.path.join(extlib_dir, 'LocaleAPI')
 +        vcs = getvcs('git',
 +                'https://git.gitorious.org/locale-api/mirror.git', 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 LocaleAPI project')
 +        return sdir
 +
+     if name == 'iptables':
+         sdir = os.path.join(extlib_dir, 'iptables')
+         vcs = getvcs('git',
+           'https://android.googlesource.com/platform/external/iptables', sdir, sdk_path)
+         vcs.gotorevision(ref)
+         return sdir
+     if name == 'LockPattern':
+         sdir = os.path.join(extlib_dir, 'LockPattern')
+         vcs = getvcs('hg',
+           'https://code.google.com/p/android-lockpattern', sdir, sdk_path)
+         vcs.gotorevision(ref)
+         libdir = os.path.join(sdir, 'code')
+         if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
+             'update', 'project', '-p',
+             libdir]) != 0:
+             raise BuildException('Error updating LockPattern project')
+         if basepath:
+             return sdir
+         return libdir
      raise BuildException('Unknown srclib ' + name)