]>
git.saurik.com Git - apt.git/blob - test/integration/test-security-no-remote-status
af4940982af1077d90f61131ed788b967b588475
3 # Test that packages from remote sources cannot set the Status field.
7 TESTDIR
=$(readlink -f $(dirname $0))
10 configarchitecture
'amd64'
12 TMPDIR
=$(readlink -f .)
14 insertpackage
'unstable' 'pretends-installed' 'all' '1' 'Status: install ok installed'
15 insertinstalledpackage
'really-installed' 'all' '1'
18 testequal
"pretends-installed:
23 500 file:${TMPDIR}/aptarchive unstable/main amd64 Packages" aptcache policy pretends
-installed
25 testequal
"really-installed:
30 100 ${TMPDIR}/rootdir/var/lib/dpkg/status" aptcache policy really
-installed