]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-732746-preferences
The entire concept of PendingError() is flawed :/.
[apt.git] / test / integration / test-bug-732746-preferences
CommitLineData
75ab11ae
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
75ab11ae
MV
6setupenvironment
7configarchitecture 'i386'
8
9insertinstalledpackage 'bar' 'i386' '1.0'
10
11cat > rootdir/etc/apt/preferences << EOF
12# random test comment header
13
14# commented out by puppy^Wpuppet
15#Package: foo
16#Pin: origin "ftp.debian.org"
17#Pin: 800
18
19Package: bar
20Pin: version 1.0
21Pin-Priority: 700
22
23#Package: bar
24#Pin: version 1.0
25#Pin: 800
26EOF
27
25b86db1 28testsuccessequal "Reading package lists...
75ab11ae
MV
29Building dependency tree..." aptget check
30
31msgtest "Ensure policy is applied"
32aptcache policy bar|grep -q "*** 1.0 700" && msgpass || msgfail