4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
"i386"
10 touch rootdir
/var
/lib
/apt
/extended_states
11 testsuccess aptmark markauto
'libvtk5.4'
12 testmarkedauto
'libvtk5.4'
14 testsuccessequal
"Reading package lists...
15 Building dependency tree...
16 Reading state information...
17 The following package was automatically installed and is no longer required:
19 Use 'apt-get autoremove' to remove it.
20 The following NEW packages will be installed:
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
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:
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
37 testfailureequal
"Reading package lists...
38 Building dependency tree...
39 Reading state information...
40 The following package was automatically installed and is no longer required:
42 Use 'apt-get autoremove' to remove it.
43 The following additional 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:
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
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 additional 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:
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
69 echo -n > rootdir
/var
/lib
/dpkg
/status
70 rm rootdir
/var
/lib
/apt
/extended_states
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
80 MarkDelete libvtk5.4 [ i386 ] < none -> 5.4.2-8 > ( libs ) FU=0
81 The following additional 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.'
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