update aptpkg.list_pkgs behavior
This commit is contained in:
Volodymyr Samodid 2017-11-09 13:34:38 +02:00
parent b6079e2b71
commit 16c6163d72
No known key found for this signature in database
GPG Key ID: 3F47E1D96850DDC0

View File

@ -1401,7 +1401,9 @@ def list_pkgs(versions_as_list=False,
for realpkg, provides in six.iteritems(virtpkgs_all):
# grep-available returns info on all virtual packages. Ignore any
# virtual packages that do not have the real package installed.
if realpkg in ret['installed']:
# _get_virtual() do not use grep-available if HAS_APT true
# so can skipt that loop
if not HAS_APT and realpkg in ret['installed']:
virtpkgs.update(provides)
for virtname in virtpkgs:
# Set virtual package versions to '1'