mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fix incorrect 'installed' status setting in dnf.py (#48931)
This commit is contained in:
@@ -340,11 +340,10 @@ class DnfModule(YumDnf):
|
||||
result['nevra'] = '{epoch}:{name}-{version}-{release}.{arch}'.format(
|
||||
**result)
|
||||
|
||||
# Added for YUM3/YUM4 compat
|
||||
if package.repoid == 'installed':
|
||||
result['yumstate'] = 'installed'
|
||||
else:
|
||||
if package.installtime == 0:
|
||||
result['yumstate'] = 'available'
|
||||
else:
|
||||
result['yumstate'] = 'installed'
|
||||
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user