]> git.saurik.com Git - apt.git/blob - test/integration/test-security-no-remote-status
use +0000 instead of UTC by default as timezone in output
[apt.git] / test / integration / test-security-no-remote-status
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:
22 1 500
23 500 file:${TMPDIR}/aptarchive unstable/main all Packages" aptcache policy pretends-installed
24
25 testequal "really-installed:
26 Installed: 1
27 Candidate: 1
28 Version table:
29 *** 1 100
30 100 ${TMPDIR}/rootdir/var/lib/dpkg/status" aptcache policy really-installed