mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
modules/apk.py: Ensure we don't error on version extraction (#36921)
This commit is contained in:
parent
8b9648cd97
commit
de3d337fdd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user