mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
Import support for bare git:// protocol
This commit is contained in:
parent
c8b7406094
commit
95575ede22
@ -346,11 +346,14 @@ Google Code - @code{http://code.google.com/p/PROJECT/}
|
||||
(supports git, svn and hg repos)
|
||||
@item
|
||||
Bitbucket - @code{https://bitbucket.org/USER/PROJECT/}
|
||||
@item
|
||||
Git - @code{git://REPO}
|
||||
@end enumerate
|
||||
|
||||
Depending on the project type, more or less information may be gathered. For
|
||||
example, the license will be retrieved from a Google Code project, but not a
|
||||
GitHub one.
|
||||
GitHub one. A bare repo url, such as the git:// one, is the least preferable
|
||||
optional of all, since you will have to enter much more information manually.
|
||||
|
||||
If the import is successful, a metadata file will be created. You will need to
|
||||
edit this further to check the information, and fill in the blanks.
|
||||
|
@ -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…
Reference in New Issue
Block a user