]>
git.saurik.com Git - apt.git/blob - test/integration/test-ubuntu-bug-1304403-obsolete-priority-standard
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
8 configarchitecture 'i386'
10 # Regression test for LP: #1304403
12 # The issue here is that libkadm5srv-mit8 (priority standard) is replaced
13 # by a new libkadm5srv-mit9 and libkbd5-7 breaks on the old -mit8 package.
14 # The -mit8 package is no longer downloadable (and hence not upgradeable)
16 # normal upradable pkg
17 # (libkdb5-7 that breaks on libkadm5srv-mit8 (<< 1.11+dfsg~)
18 insertinstalledpackage 'upgradable' 'all' '1.0' '' 'extra'
19 insertpackage 'unstable' 'upgradable' 'all' '2.0' 'Breaks: not-downloadable (<< 1.1)' 'optional'
21 # no longer downloadable pkg (libkadm5srv-mit8, replaced by libkadm5srv-mit9)
22 # but priority standard pushes it higher
23 insertinstalledpackage 'not-downloadable' 'all' '1.0' '' 'standard'
27 # discourage keeping obsolete high-priority packages …
28 testsuccessequal 'Reading package lists...
29 Building dependency tree...
30 Calculating upgrade...
31 The following packages will be REMOVED:
33 The following packages will be upgraded:
35 1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
36 Remv not-downloadable [1.0]
37 Inst upgradable [1.0] (2.0 unstable [all])
38 Conf upgradable (2.0 unstable [all])' aptget -s dist-upgrade
40 # … but if it has dependencies we want to keep it as usual
41 for i in $(seq 1 10); do
42 insertinstalledpackage "depender
$i" 'all' '1.0' 'Depends: not-downloadable'
45 testsuccessequal 'Reading package lists...
46 Building dependency tree...
47 Calculating upgrade...
48 The following packages have been kept back:
50 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.' aptget -s dist-upgrade