4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
"i386"
9 buildsimplenativepackage
"peace-dpkg" "all" "1.0" "stable"
11 buildsimplenativepackage
"a" "all" "1.0" "stable" "Depends: b"
12 buildsimplenativepackage
"b" "all" "1.0" "stable"
13 buildsimplenativepackage
"c" "all" "1.0" "stable" "Depends: b"
17 # dpkg freaks out if the last package is removed so keep one around
18 aptget
install peace
-dpkg -y -qq 2>&1 > /dev
/null
19 testdpkginstalled peace
-dpkg
20 testfileequal
'rootdir/var/lib/apt/extended_states' ''
22 aptget
install a
-y -qq 2>&1 > /dev
/null
24 testdpkgnotinstalled c
25 testfileequal
'rootdir/var/lib/apt/extended_states' 'Package: b
30 aptget remove a
-y -qq 2>&1 > /dev
/null
31 testdpkgnotinstalled a c
33 testfileequal
'rootdir/var/lib/apt/extended_states' 'Package: b
38 aptget
install c
-y -qq 2>&1 > /dev
/null
39 testdpkgnotinstalled a
41 testfileequal
'rootdir/var/lib/apt/extended_states' 'Package: b
46 testequal
'Reading package lists...
47 Building dependency tree...
48 Reading state information...
49 b is already the newest version.
50 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget
install b
--only-upgrade
51 testfileequal
'rootdir/var/lib/apt/extended_states' 'Package: b
56 testequal
'Reading package lists...
57 Building dependency tree...
58 Reading state information...
59 b is already the newest version.
60 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget
install b
-d
61 testfileequal
'rootdir/var/lib/apt/extended_states' 'Package: b
66 aptget
install b
--reinstall -y -qq 2>&1 > /dev
/null
67 testdpkgnotinstalled a
69 testfileequal
'rootdir/var/lib/apt/extended_states' 'Package: b
74 testequal
'Reading package lists...
75 Building dependency tree...
76 Reading state information...
77 b is already the newest version.
78 b set to manually installed.
79 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget
install b
80 testfileequal
'rootdir/var/lib/apt/extended_states' 'Package: b
85 aptget remove b
-y -qq 2>&1 > /dev
/null
86 testdpkgnotinstalled a b c
87 testfileequal
'rootdir/var/lib/apt/extended_states' ''
89 aptget
install a b
-y -qq 2>&1 > /dev
/null
91 testdpkgnotinstalled c
92 testfileequal
'rootdir/var/lib/apt/extended_states' ''
94 aptget purge a b
-y -qq 2>&1 > /dev
/null
95 testdpkgnotinstalled a b c
96 testfileequal
'rootdir/var/lib/apt/extended_states' ''
98 aptget
install b c
-y -qq 2>&1 > /dev
/null
99 testdpkgnotinstalled a
100 testdpkginstalled b c
101 testfileequal
'rootdir/var/lib/apt/extended_states' ''
103 aptget
install a
-y -qq 2>&1 > /dev
/null
104 testdpkginstalled a b c
105 testfileequal
'rootdir/var/lib/apt/extended_states' ''