From 9a29aa8f61530aca8a46d0c6de08ea78c6e57f9e Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 29 Apr 2024 14:56:41 +0200 Subject: showsrc: Support querying src:name This has the same meaning as --only-source name --- test/integration/test-apt-cache-showsrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/integration/test-apt-cache-showsrc b/test/integration/test-apt-cache-showsrc index d3f61d972..0f0e21d35 100755 --- a/test/integration/test-apt-cache-showsrc +++ b/test/integration/test-apt-cache-showsrc @@ -29,3 +29,9 @@ testsuccess grep "Package: unrelated" output.txt aptcache showsrc --only-source foo > output.txt testsuccess grep "Package: foo" output.txt testfailure grep "Package: unrelated" output.txt + +# by default apt-cache showsrc will look into "binary" and "source" names +# and show all matches +aptcache showsrc src:foo > output.txt +testsuccess grep "Package: foo" output.txt +testfailure grep "Package: unrelated" output.txt -- cgit v1.2.3-70-g09d2