From 681f74a8bd5beaad5b821a5c4eb3c0bc1c471669 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 26 Oct 2020 14:39:44 +0100 Subject: pkgnames: Do not exclude virtual packages with --all-names We accidentally excluded virtual packages by excluding every group that had a package, but where the package had no versions. Rewrite the code so the lookup consistently uses VersionList() instead of FirstVersion and FindPkg("any") - those are all the same, and this is easier to read. --- test/integration/test-ubuntu-bug-1876495-pkgnames-virtual | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/integration/test-ubuntu-bug-1876495-pkgnames-virtual b/test/integration/test-ubuntu-bug-1876495-pkgnames-virtual index 77d68e085..00a767479 100755 --- a/test/integration/test-ubuntu-bug-1876495-pkgnames-virtual +++ b/test/integration/test-ubuntu-bug-1876495-pkgnames-virtual @@ -20,4 +20,5 @@ dpkg" aptcache pkgnames testsuccessequal "source-package coolstuff -dpkg" aptcache pkgnames --all-names +dpkg +virtual-package" aptcache pkgnames --all-names -- cgit v1.2.3-18-g5258