Debian Codegraph @

test/integration/test-ubuntu-bug-2025462-phased-dist-upgrade

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 set -e
3
4 TESTDIR="$(readlinkscip-shell system . . readlink. -f "$(dirnamescip-shell system . . dirname. "$0")")"
5 . "$TESTDIR/framework"
6
7 setupenvironment
8 echoscip-shell system . . echo. 'Debug::Phasing "1";' > rootdir/etc/apt/apt.conf.d/debug-phasing
9 configarchitecture 'i386'
10
11 insertinstalledpackage 'gnome-shell' 'all' '1' 'Depends: mutter (>= 1), gnome-shell-common (= 1)'
12 insertinstalledpackage 'gnome-shell-common' 'all' '1'
13 insertinstalledpackage 'mutter' 'all' '1'
14
15 insertpackage 'unstable-updates' 'gnome-shell-common' 'all' '2' 'Phased-Update-Percentage: 100'
16 insertpackage 'unstable-updates' 'gnome-shell' 'all' '2' 'Phased-Update-Percentage: 100
17 Depends: mutter (>= 2), gnome-shell-common (= 2)'
18 insertpackage 'unstable-updates' 'mutter' 'all' '2' 'Phased-Update-Percentage: 0'
19
20 setupaptarchive
21
22 # This is the broken test case:
23 #
24 # The following packages will be REMOVED:
25 # gnome-shell
26 # The following packages have been kept back:
27 # mutter
28 # The following packages will be upgraded:
29 # gnome-shell-common
30 # 1 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
31
32 testsuccessequal "Reading package lists...
33 Building dependency tree...
34 Calculating upgrade...
35 The following upgrades have been deferred due to phasing:
36 mutter
37 The following packages have been kept back:
38 gnome-shell gnome-shell-common
39 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded." aptget dist-upgrade -s -q
40
41 testsuccessequal "Reading package lists...
42 Building dependency tree...
43 Calculating upgrade...
44 The following packages will be upgraded:
45 gnome-shell gnome-shell-common mutter
46 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
47 Inst mutter [1] (2 unstable-updates [all])
48 Inst gnome-shell [1] (2 unstable-updates [all]) []
49 Inst gnome-shell-common [1] (2 unstable-updates [all])
50 Conf mutter (2 unstable-updates [all])
51 Conf gnome-shell (2 unstable-updates [all])
52 Conf gnome-shell-common (2 unstable-updates [all])" aptget dist-upgrade -s -q -o APT::Get::Always-Include-Phased-Updates=1