modules/apk.py: Ensure we don't error on version extraction (#36921)

This commit is contained in:
Olivier Mauras 2016-10-12 00:31:32 +02:00 committed by Nicole Thomas
parent 8b9648cd97
commit de3d337fdd

View File

@ -202,7 +202,7 @@ def latest_version(*names, **kwargs):
newversion = line.split(' ')[5].strip(')') newversion = line.split(' ')[5].strip(')')
if name in names: if name in names:
ret[name] = newversion ret[name] = newversion
except ValueError: except (ValueError, IndexError):
pass pass
# If version is empty, package may not be installed # If version is empty, package may not be installed