Import support for bare git:// protocol

This commit is contained in:
Ciaran Gultnieks 2012-04-03 21:13:51 +01:00
parent c8b7406094
commit 95575ede22
2 changed files with 12 additions and 2 deletions

View file

@ -57,6 +57,13 @@ def main():
projecttype = None
issuetracker = None
license = None
website = url #by default, we might override it
if url.startswith('git://'):
projecttype = 'git'
repo = url
repotype = 'git'
sourcecode = ""
website = ""
if url.startswith('https://github.com'):
if url.endswith('/'):
url = url[:-1]
@ -211,7 +218,7 @@ def main():
# Construct the metadata...
app = common.parse_metadata(None)
app['id'] = package
app['Web Site'] = url
app['Web Site'] = website
app['Source Code'] = sourcecode
if issuetracker:
app['Issue Tracker'] = issuetracker