import: fix issue tracker links

This commit is contained in:
Daniel Martí 2015-10-03 16:28:48 -07:00
parent 712deb4396
commit 75bde83fb8

View file

@ -91,7 +91,7 @@ def get_metadata_from_url(app, url):
repo = url repo = url
repotype = 'git' repotype = 'git'
app['Source Code'] = url app['Source Code'] = url
app['issuetracker'] = url + '/issues' app['Issue Tracker'] = url + '/issues'
app['Web Site'] = "" app['Web Site'] = ""
elif url.startswith('https://gitlab.com/'): elif url.startswith('https://gitlab.com/'):
projecttype = 'gitlab' projecttype = 'gitlab'
@ -102,13 +102,13 @@ def get_metadata_from_url(app, url):
repo = url + '.git' repo = url + '.git'
repotype = 'git' repotype = 'git'
app['Source Code'] = url + '/tree/HEAD' app['Source Code'] = url + '/tree/HEAD'
app['issuetracker'] = url + '/issues' app['Issue Tracker'] = url + '/issues'
elif url.startswith('https://bitbucket.org/'): elif url.startswith('https://bitbucket.org/'):
if url.endswith('/'): if url.endswith('/'):
url = url[:-1] url = url[:-1]
projecttype = 'bitbucket' projecttype = 'bitbucket'
app['Source Code'] = url + '/src' app['Source Code'] = url + '/src'
app['issuetracker'] = url + '/issues' app['Issue Tracker'] = url + '/issues'
# Figure out the repo type and adddress... # Figure out the repo type and adddress...
repotype, repo = getrepofrompage(app['Source Code']) repotype, repo = getrepofrompage(app['Source Code'])
if not repotype: if not repotype: