mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Also finish at quotes when using import -u
This commit is contained in:
parent
4193caa0d4
commit
a35ff3e154
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue