chiark / gitweb /
PrettyTime srclib
authorDavid Black <david8black@gmail.com>
Sun, 28 Apr 2013 17:52:27 +0000 (18:52 +0100)
committerDavid Black <david8black@gmail.com>
Sun, 28 Apr 2013 17:52:27 +0000 (18:52 +0100)
fdroidserver/common.py

index 3b08154f793a46e3fbe93cee69b6383a5bb6b8a2..18c593d793a78b772d13f17ce0f723de4de22683 100644 (file)
@@ -1434,7 +1434,10 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
         vcs = getvcs('git',
            'git://git.eclipse.org/gitroot/egit/egit-github.git', sdir, sdk_path)
         vcs.gotorevision(ref)
-        return sdir
+        libdir = os.path.join(sdir, 'org.eclipse.egit.github.core')
+        if basepath:
+            return sdir
+        return libdir
 
     if name == 'Busybox':
         sdir = os.path.join(extlib_dir, 'Busybox')
@@ -1710,6 +1713,8 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
            'https://github.com/timmolter/XChart', sdir, sdk_path)
         vcs.gotorevision(ref)
         libdir = os.path.join(sdir, 'xchart')
+        if basepath:
+            return sdir
         return libdir
 
     if name == 'Libxmp':
@@ -1773,6 +1778,13 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
             raise BuildException('Error updating QuickdicUtils project')
         return sdir
 
+    if name == 'PrettyTime':
+        sdir = os.path.join(extlib_dir, 'PrettyTime')
+        vcs = getvcs('git',
+           'https://github.com/ocpsoft/prettytime', sdir, sdk_path)
+        vcs.gotorevision(ref)
+        return sdir
+
     raise BuildException('Unknown srclib ' + name)