]>
Commit | Line | Data |
---|---|---|
1c73b0fc JAK |
1 | #!/bin/sh |
2 | # | |
3 | # Test that packages from remote sources cannot set the Status field. | |
4 | # | |
5 | set -e | |
6 | ||
7 | TESTDIR=$(readlink -f $(dirname $0)) | |
8 | . $TESTDIR/framework | |
9 | setupenvironment | |
10 | configarchitecture 'amd64' | |
11 | ||
12 | TMPDIR=$(readlink -f .) | |
13 | ||
14 | insertpackage 'unstable' 'pretends-installed' 'all' '1' 'Status: install ok installed' | |
15 | insertinstalledpackage 'really-installed' 'all' '1' | |
16 | setupaptarchive | |
17 | ||
18 | testequal "pretends-installed: | |
19 | Installed: (none) | |
20 | Candidate: 1 | |
21 | Version table: | |
15d9f7e7 | 22 | 1 500 |
1dd20368 | 23 | 500 file:${TMPDIR}/aptarchive unstable/main all Packages" aptcache policy pretends-installed |
1c73b0fc JAK |
24 | |
25 | testequal "really-installed: | |
26 | Installed: 1 | |
27 | Candidate: 1 | |
28 | Version table: | |
15d9f7e7 | 29 | *** 1 100 |
1c73b0fc | 30 | 100 ${TMPDIR}/rootdir/var/lib/dpkg/status" aptcache policy really-installed |