]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-604222-new-and-autoremove
128 KiB DSC files ought to be enough for everyone
[apt.git] / test / integration / test-bug-604222-new-and-autoremove
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture "i386"
8setupaptarchive
9
10touch rootdir/var/lib/apt/extended_states
11testsuccess aptmark markauto 'libvtk5.4'
12testmarkedauto 'libvtk5.4'
13
14testequal "Reading package lists...
15Building dependency tree...
16Reading state information...
17The following package was automatically installed and is no longer required:
18 libvtk5.4
19Use 'apt-get autoremove' to remove it.
20The following NEW packages will be installed:
21 libavcodec52
220 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
23Inst libavcodec52 (4:0.5.2-6 localhost [i386])
24Conf libavcodec52 (4:0.5.2-6 localhost [i386])" aptget install libavcodec52 -s
25
26testequal "Reading package lists...
27Building dependency tree...
28Reading state information...
29The following package was automatically installed and is no longer required:
30 libvtk5.4
31Use 'apt-get autoremove' to remove it.
32The following extra packages will be installed:
33 libavcodec52 libopenal-dev libvtk5.4
34The following NEW packages will be installed:
35 dummy-archive libavcodec52 libopenal-dev
36The following packages will be upgraded:
37 libvtk5.4
381 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
39Need to get 0 B/19.4 MB of archives.
40After this operation, 17.3 MB of additional disk space will be used.
41E: Trivial Only specified but this is not a trivial operation." aptget install dummy-archive --trivial-only
42
43echo -n > rootdir/var/lib/dpkg/status
44rm rootdir/var/lib/apt/extended_states
45
46CONFLICTING='Reading package lists...
47Building dependency tree...
48 MarkInstall dummy-archive [ i386 ] < none -> 0.invalid.0 > ( admin ) FU=1
49 MarkInstall libavcodec52 [ i386 ] < none -> 4:0.5.2-6 > ( libs ) FU=0
50 MarkInstall libvtk5-dev [ i386 ] < none -> 5.4.2-8 > ( libdevel ) FU=0
51 MarkInstall libvtk5.4 [ i386 ] < none -> 5.4.2-8 > ( libs ) FU=0
52 MarkKeep libvtk5-dev [ i386 ] < none -> 5.4.2-8 > ( libdevel ) FU=0
53 MarkKeep libvtk5-dev [ i386 ] < none -> 5.4.2-8 > ( libdevel ) FU=0
54 MarkDelete libvtk5.4 [ i386 ] < none -> 5.4.2-8 > ( libs ) FU=0
55The following extra packages will be installed:
56 libavcodec52 libopenal-dev
57The following NEW packages will be installed:
58 dummy-archive libavcodec52 libopenal-dev
590 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
60Need to get 0 B/6304 kB of archives.
61After this operation, 17.3 MB of additional disk space will be used.
62E: Trivial Only specified but this is not a trivial operation.'
63
64testequal "$CONFLICTING" aptget install dummy-archive --trivial-only -o Debug::pkgDepCache::Marker=1 -o APT::Get::HideAutoRemove=0
65testequal "$CONFLICTING" aptget install dummy-archive --trivial-only -o Debug::pkgDepCache::Marker=1 -o APT::Get::HideAutoRemove=1
66testequal "$CONFLICTING" aptget install dummy-archive --trivial-only -o Debug::pkgDepCache::Marker=1 -o APT::Get::HideAutoRemove=small