1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-05 06:50:10 +01:00

import: fix bitbucket import

repo type can be found on main url, not under /src
This commit is contained in:
Marcus Hoffmann 2017-10-04 18:18:30 +02:00
parent 5567182629
commit 1c5dccb413

View File

@ -133,7 +133,7 @@ def get_metadata_from_url(app, url):
app.SourceCode = url + '/src'
app.IssueTracker = url + '/issues'
# Figure out the repo type and adddress...
repotype, repo = getrepofrompage(app.SourceCode)
repotype, repo = getrepofrompage(url)
if not repotype:
raise FDroidException("Unable to determine vcs type. " + repo)
elif url.startswith('https://') and url.endswith('.git'):