mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
mark as upgradable and let apt-get install deal with it
This commit is contained in:
parent
043242df2c
commit
3c53b3b268
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,8 @@ def package_status(m, pkgname, version, cache, state):
|
||||||
m.fail_json(msg="No package matching '%s' is available" % pkgname)
|
m.fail_json(msg="No package matching '%s' is available" % pkgname)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# python-apt version too old to detect virtual packages
|
# python-apt version too old to detect virtual packages
|
||||||
m.fail_json(msg="No package matching '%s' is available (python-apt version too old to detect virtual packages)" % pkgname)
|
# mark as upgradable and let apt-get install deal with it
|
||||||
|
return False, True, False
|
||||||
else:
|
else:
|
||||||
return False, False, False
|
return False, False, False
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue