Resolve idempotency issue with virtual apt package (#3449)
Virtual packages were always marked as upgradable which caused the changed-state even though nothing changed.
This commit is contained in:
parent
fb5a91d9d1
commit
1b94aa2d43
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ def package_status(m, pkgname, version, cache, state):
|
|||
installed, upgradable, has_files = package_status(m, package.name, version, cache, state='install')
|
||||
if installed:
|
||||
is_installed = True
|
||||
return is_installed, True, False
|
||||
return is_installed, upgradable, False
|
||||
m.fail_json(msg="No package matching '%s' is available" % pkgname)
|
||||
except AttributeError:
|
||||
# python-apt version too old to detect virtual packages
|
||||
|
|
Loading…
Reference in a new issue