mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Import support for bare git:// protocol
This commit is contained in:
parent
c8b7406094
commit
95575ede22
2 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue