summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2023-01-13 16:54:41 +0000
committerJulian Andres Klode <jak@debian.org>2023-01-13 16:54:41 +0000
commit0970d6407f53be34c54dbab5db0f29e961899f73 (patch)
treed48fe4e20c34e30259c8d2ef4af9c45ff81efbc5 /test
parent5919d2d18eac6e445a59da23246df94258e103eb (diff)
parent9a29ea6f6d0f9115044c0ccddde3dc6454d483da (diff)
Merge branch 'pu/installed-matches-version' into 'main'
make ?installed pattern match installed version only when narrowed See merge request apt-team/apt!275
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-apt-patterns6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/test-apt-patterns b/test/integration/test-apt-patterns
index 7f202710c..85370aee8 100755
--- a/test/integration/test-apt-patterns
+++ b/test/integration/test-apt-patterns
@@ -192,6 +192,12 @@ conf-only/now 1.0 i386 [residual-config]
foreign/unstable 2.0 amd64" apt list '?not(?installed)'
testsuccessequal "Listing...
+not-obsolete/unstable 2.0 i386 [upgradable from: 1.0]
+N: There is 1 additional version. Please use the '-a' switch to see it" apt list '?installed?exact-name(not-obsolete)?version(2.0)'
+
+testsuccessequal "Listing..." apt list '?narrow(?installed?exact-name(not-obsolete)?version(2.0))'
+
+testsuccessequal "Listing...
automatic1/now 1.0 i386 [installed,local]
automatic2/now 1.0 i386 [installed,local]" apt list '?name(^automatic)'