mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Added importer support for bitbucket repos
This commit is contained in:
parent
a35d31aa21
commit
c08f5d7e5f
2 changed files with 11 additions and 2 deletions
11
import.py
11
import.py
|
|
@ -67,10 +67,17 @@ def main():
|
|||
repo = 'https://git.gitorious.org/' + url[22:] + '.git'
|
||||
repotype = 'git'
|
||||
sourcecode = url
|
||||
elif url.startswith('https://bitbucket.org/'):
|
||||
if url.endswith('/'):
|
||||
url = url[:-1]
|
||||
projecttype = 'bitbucket'
|
||||
sourcecode = url + '/src'
|
||||
issuetracker = url + '/issues'
|
||||
repotype = 'hg'
|
||||
repo = url
|
||||
elif url.startswith('http://code.google.com/p/'):
|
||||
if not url.endswith('/'):
|
||||
print "Expected format for googlecode url is http://code.google.com/p/PROJECT/"
|
||||
sys.exit(1)
|
||||
url += '/';
|
||||
projecttype = 'googlecode'
|
||||
sourcecode = url + 'source/checkout'
|
||||
issuetracker = url + 'issues/list'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue