chiark / gitweb /
Support for importing from multi-repo google code project
authorCiaran Gultnieks <ciaran@ciarang.com>
Fri, 10 Aug 2012 11:42:20 +0000 (12:42 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Fri, 10 Aug 2012 11:42:20 +0000 (12:42 +0100)
fdroidserver/import.py

index 6490ce974d10c8c89433a6145104653fbd33984a..0e94a0d2c91dd22254466cb9a7cb54a9db911e91 100644 (file)
@@ -38,6 +38,8 @@ def main():
                       help="Project URL to import from.")
     parser.add_option("-s", "--subdir", default=None,
                       help="Path to main android project subdirectory, if not in root.")
+    parser.add_option("-r", "--repo", default=None,
+                      help="Allows a different repo to be specified for a multi-repo google code project")
     (options, args) = parser.parse_args()
 
     if not options.url:
@@ -89,6 +91,8 @@ def main():
             url += '/';
         projecttype = 'googlecode'
         sourcecode = url + 'source/checkout'
+        if options.repo:
+            sourcecode += "?repo=" + options.repo
         issuetracker = url + 'issues/list'
 
         # Figure out the repo type and adddress...