]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-796070-downgrade-simulate
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
'i386'
10 insertpackage
'unstable' 'apt' 'all' '1.0.10.1' 'Depends: libapt-pkg4.16 (>= 1.0.10.1)'
11 insertinstalledpackage
'libapt-pkg4.16' 'all' '1.0.10.1' 'Breaks: apt (<< 0.9.4~), libapt-inst1.5 (<< 0.9.9~)'
12 insertinstalledpackage
'libapt-pkg5.0' 'all' '1.1~exp9' 'Breaks: apt (<< 1.1~exp4), libapt-inst1.5 (<< 0.9.9~)'
13 insertinstalledpackage
'apt' 'all' '1.1~exp9' 'Depends: libapt-pkg5.0'
15 insertpackage
'unstable' 'napt' 'all' '1.0.10.1' 'Depends: nlibapt-pkg4.16 (>= 1.0.10.1)'
16 insertinstalledpackage
'nlibapt-pkg4.16' 'all' '1.0.10.1' 'Breaks: napt (<< 0.9.4~), nlibapt-inst1.5 (<< 0.9.9~)'
17 insertinstalledpackage
'nlibapt-pkg5.0' 'all' '1.1~exp9' 'Breaks: napt (<< 1.1~exp4), nlibapt-inst1.5 (<< 0.9.9~)'
18 insertinstalledpackage
'napt' 'all' '1.1~exp9' 'Depends: nlibapt-pkg5.0'
20 insertpackage
'unstable' 'eapt' 'all' '1.0.10.1' 'Depends: elibapt-pkg4.16 (>= 1.0.10.1)
22 insertinstalledpackage
'elibapt-pkg4.16' 'all' '1.0.10.1' 'Breaks: eapt (<< 0.9.4~), elibapt-inst1.5 (<< 0.9.9~)'
23 insertinstalledpackage
'elibapt-pkg5.0' 'all' '1.1~exp9' 'Breaks: eapt (<< 1.1~exp4), elibapt-inst1.5 (<< 0.9.9~)'
24 insertinstalledpackage
'eapt' 'all' '1.1~exp9' 'Depends: elibapt-pkg5.0
31 # Check with a normal package
32 testsuccessequal
'Reading package lists...
33 Building dependency tree...
34 The following packages will be REMOVED:
36 The following packages will be DOWNGRADED:
38 0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded.
39 Remv nlibapt-pkg5.0 [1.1~exp9] [napt:i386 ]
40 Inst napt [1.1~exp9] (1.0.10.1 unstable [all])
41 Conf napt (1.0.10.1 unstable [all])' apt
install -s napt
=1.0.10.1
44 # Check with Essential
45 testsuccessequal
'Reading package lists...
46 Building dependency tree...
47 The following packages will be REMOVED:
49 The following packages will be DOWNGRADED:
51 0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded.
52 Inst eapt [1.1~exp9] (1.0.10.1 unstable [all]) [elibapt-pkg5.0:i386 on eapt:i386] [elibapt-pkg5.0:i386 ]
53 Remv elibapt-pkg5.0 [1.1~exp9]
54 Conf eapt (1.0.10.1 unstable [all])' apt
install -s eapt
=1.0.10.1
57 # Check with the APT name, aka essential
58 testsuccessequal
'Reading package lists...
59 Building dependency tree...
60 The following packages will be REMOVED:
62 The following packages will be DOWNGRADED:
64 0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded.
65 Inst apt [1.1~exp9] (1.0.10.1 unstable [all]) [libapt-pkg5.0:i386 on apt:i386] [libapt-pkg5.0:i386 ]
66 Remv libapt-pkg5.0 [1.1~exp9]
67 Conf apt (1.0.10.1 unstable [all])' apt
install -s apt
=1.0.10.1