mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Support for importing from multi-repo google code project
This commit is contained in:
parent
f49a85b4fb
commit
0ddfa22caa
1 changed files with 4 additions and 0 deletions
|
|
@ -38,6 +38,8 @@ def main():
|
||||||
help="Project URL to import from.")
|
help="Project URL to import from.")
|
||||||
parser.add_option("-s", "--subdir", default=None,
|
parser.add_option("-s", "--subdir", default=None,
|
||||||
help="Path to main android project subdirectory, if not in root.")
|
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()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
if not options.url:
|
if not options.url:
|
||||||
|
|
@ -89,6 +91,8 @@ def main():
|
||||||
url += '/';
|
url += '/';
|
||||||
projecttype = 'googlecode'
|
projecttype = 'googlecode'
|
||||||
sourcecode = url + 'source/checkout'
|
sourcecode = url + 'source/checkout'
|
||||||
|
if options.repo:
|
||||||
|
sourcecode += "?repo=" + options.repo
|
||||||
issuetracker = url + 'issues/list'
|
issuetracker = url + 'issues/list'
|
||||||
|
|
||||||
# Figure out the repo type and adddress...
|
# Figure out the repo type and adddress...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue