Enhance filter for the "technical" fields that are not generally needed as a package information for the CMDB

This commit is contained in:
Bo Maryniuk 2015-09-10 14:16:21 +02:00
parent 8d6429c746
commit 9004de4dd1

View File

@ -364,7 +364,8 @@ def info(*packages):
pkg[pkg_ext_k] = pkg_ext_v
# Remove "technical" keys
for t_key in ['installed_size', 'depends', 'recommends',
'conflicts', 'bugs', 'description-md5']:
'provides', 'replaces', 'conflicts', 'bugs',
'description-md5', 'task']:
if t_key in pkg:
del pkg[t_key]
ret[pkg['package']] = pkg