diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-04-02 17:03:04 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-05-07 11:03:28 +0200 |
commit | 436d5d5b573a8a30e0868a8af5c624801112377b (patch) | |
tree | 19116aa082984b2e0a3f9380aa9589cbb61651cd /test | |
parent | b0dbcdd9d6d51d0f653a87e611d4049825bbcd1f (diff) |
Add test case for local-only packages pinned to never
Test from the fix for the regression in trusty for LP #1821308.
(cherry picked from commit 61159a9be93f930066ad39e4f8eb658e18853b8e)
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-policy-pinning | 15 |
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 |