mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
mark as upgradable and let apt-get install deal with it
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user