chiark / gitweb /
Import support for bare git:// protocol
authorCiaran Gultnieks <ciaran@ciarang.com>
Tue, 3 Apr 2012 20:13:51 +0000 (21:13 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Tue, 3 Apr 2012 20:13:51 +0000 (21:13 +0100)
docs/fdroid.texi
fdroidserver/import.py

index 72c84a0d6a177b20adcd7c448180f7f759fc4533..2c79beb74965c20958e064d041a2e92b5e2531e8 100644 (file)
@@ -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.
index 6bf1516c565558a9f3126562e8e8c6b167c581b7..6956e02c39acda1fb92cb2046cd5ac7a2180ea4f 100644 (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