chiark / gitweb /
Also finish at quotes when using import -u
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 16 Sep 2013 12:25:39 +0000 (14:25 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 16 Sep 2013 12:25:39 +0000 (14:25 +0200)
fdroidserver/import.py

index 91a37bfc24843c932432a35beca65db6c3b0d7df..49187f90b4f6a6fb27916ffa28d6176bd06300c1 100644 (file)
@@ -44,6 +44,7 @@ def getrepofrompage(url):
         if index == -1:
             return (None, "Error while getting repo address")
         repo = repo[:index]
+        repo = repo.split('"')[0]
         return (repotype, repo)
 
     # Works for Google Code and BitBucket...
@@ -55,6 +56,7 @@ def getrepofrompage(url):
         if index == -1:
             return (None, "Error while getting repo address")
         repo = repo[:index]
+        repo = repo.split('"')[0]
         return (repotype, repo)
 
     # Google Code only...
@@ -75,6 +77,7 @@ def getrepofrompage(url):
         if index == -1:
             return (None, "Error while getting repo address - no space? '" + repo + "'")
         repo = repo[:index]
+        repo = repo.split('"')[0]
         return (repotype, repo)
 
     return (None, "No information found." + page)