]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-814139-pickup-of-different-cache-states
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
8 configarchitecture 'amd64'
10 insertinstalledpackage 'build-essential' 'amd64' '1'
12 buildsimplenativepackage 'foo' 'all' '1' 'stable' 'Build-Depends: bar'
13 buildsimplenativepackage 'bar' 'all' '1' 'stable'
17 cp rootdir/var/lib/dpkg/status status.backup
20 cp status.backup rootdir/var/lib/dpkg/status
22 testdpkgnotinstalled 'bar'
23 testsuccess aptget build-dep foo -y
24 testdpkginstalled 'bar'
27 testsuccess aptget source foo
28 testsuccess test -s foo_1.tar.* -a -s foo_1.dsc
29 rm foo_1.tar.* foo_1.dsc
30 testsuccess test -d foo-1
34 testsuccess aptget install foo -y
37 msgmsg 'Caches fully up-to-date'
39 rm -f rootdir/var/cache/apt/*.bin
40 testsuccess aptcache gencaches
44 msgmsg 'pkgcache.bin is missing'
46 rm -f rootdir/var/cache/apt/*.bin
47 testsuccess aptcache gencaches
48 rm rootdir/var/cache/apt/pkgcache.bin
52 msgmsg 'Caches are not writeable'
53 rm rootdir/var/cache/apt/*.bin
54 addtrap 'prefix' 'chmod 755 rootdir/var/cache/apt;'
55 chmod 555 rootdir/var/cache/apt
56 testsuccess aptcache gencaches
58 testfilestats "${TMPWORKINGDIRECTORY}/rootdir
/var
/cache
/apt
" '%a' '=' '555'