4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64' 'i386' 'armel'
9 insertinstalledpackage 'foo' 'i386' '1'
10 insertpackage 'unstable' 'foo' 'amd64,i386' '1'
12 insertpackage 'unstable,installed' 'foo2' 'i386' '1'
14 insertinstalledpackage 'foo3' 'amd64' '1'
15 insertpackage 'unstable' 'foo3' 'amd64,i386' '1'
17 insertinstalledpackage 'samefoo' 'i386,amd64' '1' 'Multi-Arch: same'
18 insertpackage 'unstable' 'samefoo' 'amd64,i386,armel' '1' 'Multi-Arch: same'
20 insertinstalledpackage 'samefoo2' 'i386' '1' 'Multi-Arch: same'
21 insertpackage 'unstable' 'samefoo2' 'amd64,i386,armel' '1' 'Multi-Arch: same'
23 insertinstalledpackage 'mozplugger' 'i386' '1' 'Depends: iceweasel | fireweasel'
24 insertinstalledpackage 'fireweasel' 'i386' '1'
25 insertpackage 'unstable' 'mozplugger' 'i386,amd64' '1' 'Depends: iceweasel | fireweasel'
29 testsuccessequal "Reading package lists...
30 Building dependency tree...
31 Package
'foo' is not installed
, so not removed. Did you mean
'foo:i386'?
32 0 upgraded
, 0 newly installed
, 0 to remove and
0 not upgraded.
" aptget remove foo -s
34 testsuccessequal "Reading package lists...
35 Building dependency tree...
36 The following packages will be REMOVED
:
38 0 upgraded
, 0 newly installed
, 1 to remove and
0 not upgraded.
39 Remv foo2
:i386
[1]" aptget remove foo2 -s
41 testsuccessequal "Reading package lists...
42 Building dependency tree...
43 The following packages will be REMOVED
:
45 0 upgraded
, 0 newly installed
, 1 to remove and
0 not upgraded.
46 Remv foo3
[1]" aptget remove foo3 -s
48 testsuccessequal "Reading package lists...
49 Building dependency tree...
50 Package
'foo3:i386' is not installed
, so not removed. Did you mean
'foo3'?
51 0 upgraded
, 0 newly installed
, 0 to remove and
0 not upgraded.
" aptget remove foo3:i386 -s
53 testequalor2 "Reading package lists...
54 Building dependency tree...
55 Package
'samefoo:armel' is not installed
, so not removed. Did you mean
'samefoo'?
56 0 upgraded
, 0 newly installed
, 0 to remove and
0 not upgraded.
" "Reading package lists...
57 Building dependency tree...
58 Package
'samefoo:armel' is not installed
, so not removed. Did you mean
'samefoo:i386'?
59 0 upgraded
, 0 newly installed
, 0 to remove and
0 not upgraded.
" aptget remove samefoo:armel -s
61 testsuccessequal "Reading package lists...
62 Building dependency tree...
63 Package
'samefoo2' is not installed
, so not removed. Did you mean
'samefoo2:i386'?
64 0 upgraded
, 0 newly installed
, 0 to remove and
0 not upgraded.
" aptget remove samefoo2 -s
66 testsuccessequal "Reading package lists...
67 Building dependency tree...
68 Package
'samefoo2:armel' is not installed
, so not removed. Did you mean
'samefoo2:i386'?
69 0 upgraded
, 0 newly installed
, 0 to remove and
0 not upgraded.
" aptget remove samefoo2:armel -s
71 testsuccessequal "Reading package lists...
72 Building dependency tree...
73 Package
'iceweasel' is not installed
, so not removed
74 0 upgraded
, 0 newly installed
, 0 to remove and
0 not upgraded.
" aptget remove iceweasel -s
76 testsuccessequal "Reading package lists...
77 Building dependency tree...
78 Package
'fireweasel' is not installed
, so not removed. Did you mean
'fireweasel:i386'?
79 0 upgraded
, 0 newly installed
, 0 to remove and
0 not upgraded.
" aptget remove fireweasel:amd64 -s