]>
Commit | Line | Data |
---|---|---|
a8dfff90 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
adee3bae | 4 | TESTDIR=$(readlink -f $(dirname $0)) |
a8dfff90 DK |
5 | . $TESTDIR/framework |
6 | setupenvironment | |
7 | configarchitecture "i386" | |
8 | setupaptarchive | |
9 | ||
ec7f904e | 10 | touch rootdir/var/lib/apt/extended_states |
0440d936 | 11 | testsuccess aptmark markauto 'libvtk5.4' |
ec7f904e | 12 | testmarkedauto 'libvtk5.4' |
a8dfff90 | 13 | |
25b86db1 | 14 | testsuccessequal "Reading package lists... |
a8dfff90 DK |
15 | Building dependency tree... |
16 | Reading state information... | |
17 | The following package was automatically installed and is no longer required: | |
18 | libvtk5.4 | |
de378651 | 19 | Use 'apt-get autoremove' to remove it. |
a8dfff90 DK |
20 | The following NEW packages will be installed: |
21 | libavcodec52 | |
22 | 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. | |
23 | Inst libavcodec52 (4:0.5.2-6 localhost [i386]) | |
24 | Conf libavcodec52 (4:0.5.2-6 localhost [i386])" aptget install libavcodec52 -s | |
25 | ||
a0c19a21 DK |
26 | testsuccessequal "Reading package lists... |
27 | Building dependency tree... | |
28 | Reading state information... | |
29 | 1 package was automatically installed and is no longer required. | |
30 | Use 'apt-get autoremove' to remove it. | |
31 | The following NEW packages will be installed: | |
32 | libavcodec52 | |
33 | 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. | |
34 | Inst libavcodec52 (4:0.5.2-6 localhost [i386]) | |
35 | Conf libavcodec52 (4:0.5.2-6 localhost [i386])" aptget install libavcodec52 -s -o APT::Get::HideAutoRemove=small | |
36 | ||
25b86db1 | 37 | testfailureequal "Reading package lists... |
a8dfff90 DK |
38 | Building dependency tree... |
39 | Reading state information... | |
40 | The following package was automatically installed and is no longer required: | |
41 | libvtk5.4 | |
de378651 | 42 | Use 'apt-get autoremove' to remove it. |
a8dfff90 DK |
43 | The following extra packages will be installed: |
44 | libavcodec52 libopenal-dev libvtk5.4 | |
45 | The following NEW packages will be installed: | |
46 | dummy-archive libavcodec52 libopenal-dev | |
47 | The following packages will be upgraded: | |
48 | libvtk5.4 | |
49 | 1 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. | |
50 | Need to get 0 B/19.4 MB of archives. | |
51 | After this operation, 17.3 MB of additional disk space will be used. | |
52 | E: Trivial Only specified but this is not a trivial operation." aptget install dummy-archive --trivial-only | |
a0c19a21 DK |
53 | testequal "Reading package lists... |
54 | Building dependency tree... | |
55 | Reading state information... | |
56 | 1 package was automatically installed and is no longer required. | |
57 | Use 'apt-get autoremove' to remove it. | |
58 | The following extra packages will be installed: | |
59 | libavcodec52 libopenal-dev libvtk5.4 | |
60 | The following NEW packages will be installed: | |
61 | dummy-archive libavcodec52 libopenal-dev | |
62 | The following packages will be upgraded: | |
63 | libvtk5.4 | |
64 | 1 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. | |
65 | Need to get 0 B/19.4 MB of archives. | |
66 | After this operation, 17.3 MB of additional disk space will be used. | |
67 | E: Trivial Only specified but this is not a trivial operation." aptget install dummy-archive --trivial-only -o APT::Get::HideAutoRemove=small | |
a8dfff90 DK |
68 | |
69 | echo -n > rootdir/var/lib/dpkg/status | |
70 | rm rootdir/var/lib/apt/extended_states | |
71 | ||
72 | CONFLICTING='Reading package lists... | |
73 | Building dependency tree... | |
74 | MarkInstall dummy-archive [ i386 ] < none -> 0.invalid.0 > ( admin ) FU=1 | |
75 | MarkInstall libavcodec52 [ i386 ] < none -> 4:0.5.2-6 > ( libs ) FU=0 | |
76 | MarkInstall libvtk5-dev [ i386 ] < none -> 5.4.2-8 > ( libdevel ) FU=0 | |
77 | MarkInstall libvtk5.4 [ i386 ] < none -> 5.4.2-8 > ( libs ) FU=0 | |
78 | MarkKeep libvtk5-dev [ i386 ] < none -> 5.4.2-8 > ( libdevel ) FU=0 | |
79 | MarkKeep libvtk5-dev [ i386 ] < none -> 5.4.2-8 > ( libdevel ) FU=0 | |
b29c4482 | 80 | MarkDelete libvtk5.4 [ i386 ] < none -> 5.4.2-8 > ( libs ) FU=0 |
a8dfff90 DK |
81 | The following extra packages will be installed: |
82 | libavcodec52 libopenal-dev | |
83 | The following NEW packages will be installed: | |
84 | dummy-archive libavcodec52 libopenal-dev | |
85 | 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. | |
86 | Need to get 0 B/6304 kB of archives. | |
87 | After this operation, 17.3 MB of additional disk space will be used. | |
88 | E: Trivial Only specified but this is not a trivial operation.' | |
89 | ||
25b86db1 DK |
90 | testfailureequal "$CONFLICTING" aptget install dummy-archive --trivial-only -o Debug::pkgDepCache::Marker=1 -o APT::Get::HideAutoRemove=0 |
91 | testfailureequal "$CONFLICTING" aptget install dummy-archive --trivial-only -o Debug::pkgDepCache::Marker=1 -o APT::Get::HideAutoRemove=1 | |
92 | testfailureequal "$CONFLICTING" aptget install dummy-archive --trivial-only -o Debug::pkgDepCache::Marker=1 -o APT::Get::HideAutoRemove=small |