chiark / gitweb /
scanner: support apps using srclib repo type
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 14 Sep 2015 05:05:41 +0000 (22:05 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 14 Sep 2015 05:05:41 +0000 (22:05 -0700)
fdroidserver/scanner.py

index 15a25219a91ef0b9326e356c0e304276b54b6ba4..dce0180717eeca8ef8ca649f6dd9efb34384e68e 100644 (file)
@@ -282,7 +282,10 @@ def main():
 
         try:
 
-            build_dir = 'build/' + appid
+            if app['Repo Type'] == 'srclib':
+                build_dir = os.path.join('build', 'srclib', app['Repo'])
+            else:
+                build_dir = os.path.join('build', appid)
 
             # Set up vcs interface and make sure we have the latest code...
             vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir)