]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-814139-pickup-of-different-cache-states
a6c84d6cdec0f49a0d4c1e2d152dd57c8cce53b0
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'
26 testsuccess aptget source foo
27 testsuccess test -s foo_1.tar.xz -a -s foo_1.dsc
28 rm foo_1.tar.xz foo_1.dsc
29 testsuccess test -d foo-1
32 testsuccess aptget install foo -y
35 msgmsg 'Caches fully up-to-date'
37 rm -f rootdir/var/cache/apt/*.bin
38 testsuccess aptcache gencaches
42 msgmsg 'pkgcache.bin is missing'
44 rm -f rootdir/var/cache/apt/*.bin
45 testsuccess aptcache gencaches
46 rm rootdir/var/cache/apt/pkgcache.bin
50 msgmsg 'Caches are not writeable'
51 rm rootdir/var/cache/apt/*.bin
52 addtrap 'prefix' 'chmod 755 rootdir/var/cache/apt;'
53 chmod 555 rootdir/var/cache/apt
54 testsuccess aptcache gencaches
56 testfilestats "${TMPWORKINGDIRECTORY}/rootdir
/var
/cache
/apt
" '%a' '=' '555'