From: Boris Kraut Date: Sun, 26 Mar 2017 16:05:37 +0000 (+0200) Subject: import: add notabug.org X-Git-Tag: 0.8~92^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=39f7429c9b5fa6e4e9d28993c4a858cd3e6a15b9;p=fdroidserver.git import: add notabug.org --- diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 8090abb7..ff839b5b 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -105,6 +105,15 @@ def get_metadata_from_url(app, url): app.WebSite = url app.SourceCode = url + '/tree/HEAD' app.IssueTracker = url + '/issues' + elif url.startswith('https://notabug.org/'): + projecttype = 'notabug' + if url.endswith('.git'): + url = url[:-4] + repo = url + '.git' + repotype = 'git' + app.SourceCode = url + app.IssueTracker = url + '/issues' + app.WebSite = "" elif url.startswith('https://bitbucket.org/'): if url.endswith('/'): url = url[:-1]