Commit 5557a3c3 authored by Julian Andres Klode's avatar Julian Andres Klode

Add test case for local-only packages pinned to never

Test from the fix for the regression in trusty for LP #1821308.
parent 46a75237
Pipeline #43488 failed with stage
in 62 minutes and 58 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment