mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Get rid of more unnecessary finds
This commit is contained in:
parent
efc8317272
commit
99b5d5e387
3 changed files with 9 additions and 7 deletions
|
|
@ -31,6 +31,7 @@ from distutils.version import LooseVersion
|
|||
import common, metadata
|
||||
from common import BuildException
|
||||
from common import VCSException
|
||||
from metadata import MetaDataException
|
||||
|
||||
|
||||
# Check for a new version by looking at a document retrieved via HTTP.
|
||||
|
|
@ -413,9 +414,10 @@ def main():
|
|||
elif mode.startswith('Version '):
|
||||
pattern = mode[8:]
|
||||
if pattern.startswith('+'):
|
||||
o = pattern.find(' ')
|
||||
suffix = pattern[1:o]
|
||||
pattern = pattern[o + 1:]
|
||||
try:
|
||||
suffix, pattern = pattern.split(' ', 1)
|
||||
except ValueError:
|
||||
raise MetaDataException("Invalid AUM at: " + line)
|
||||
else:
|
||||
suffix = ''
|
||||
gotcur = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue