summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-04-02 17:03:04 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2019-04-15 09:43:32 +0200
commit5557a3c337075f9700a67d9ef74a79e914768197 (patch)
tree2202ee0ddb80b40f27974376b902b813829a1a77 /test/integration
parent46a75237f13a6ba3d08563880d2a235c61b7d1a8 (diff)
Add test case for local-only packages pinned to never
Test from the fix for the regression in trusty for LP #1821308.
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-policy-pinning15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/integration/test-policy-pinning b/test/integration/test-policy-pinning
index 35e178871..b871f724b 100755
--- a/test/integration/test-policy-pinning
+++ b/test/integration/test-policy-pinning
@@ -407,7 +407,20 @@ testsuccessequal "coolstuff:
500 file:${tmppath}/aptarchive stable/main all Packages" aptcache policy coolstuff
-
+msgmsg "Check that local-only versions can be pinned correctly (LP: #1821308)"
+echo "Package: coolstuff
+Pin: version 2.0~bpo1
+Pin-Priority: 1000" > rootdir/etc/apt/preferences
+testsuccessequal "coolstuff:
+ Installed: 2.0~bpo1
+ Candidate: 2.0~bpo1
+ Version table:
+ 2.0~bpo2 100
+ 100 file:${tmppath}/aptarchive backports/main all Packages
+ *** 2.0~bpo1 1000
+ 100 ${tmppath}/rootdir/var/lib/dpkg/status
+ 1.0 500
+ 500 file:${tmppath}/aptarchive stable/main all Packages" aptcache policy coolstuff
# Check for 0
echo "Package: coolstuff