Fix incorrect 'installed' status setting in dnf.py (#48931)
This commit is contained in:
parent
89b7e10436
commit
e7104a445b
1 changed files with 3 additions and 4 deletions
|
@ -340,11 +340,10 @@ class DnfModule(YumDnf):
|
||||||
result['nevra'] = '{epoch}:{name}-{version}-{release}.{arch}'.format(
|
result['nevra'] = '{epoch}:{name}-{version}-{release}.{arch}'.format(
|
||||||
**result)
|
**result)
|
||||||
|
|
||||||
# Added for YUM3/YUM4 compat
|
if package.installtime == 0:
|
||||||
if package.repoid == 'installed':
|
|
||||||
result['yumstate'] = 'installed'
|
|
||||||
else:
|
|
||||||
result['yumstate'] = 'available'
|
result['yumstate'] = 'available'
|
||||||
|
else:
|
||||||
|
result['yumstate'] = 'installed'
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue