]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-740843-versioned-up-down-breaks
don't cleanup cdrom files in apt-get update
[apt.git] / test / integration / test-bug-740843-versioned-up-down-breaks
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64' 'i386'
8
9 insertinstalledpackage 'foo-driver' 'amd64' '1' 'Depends: libfoo (= 1)
10 Recommends: libgl1-foo-glx (= 1)
11 Breaks: libgl1-foo-glx (<< 1), libgl1-foo-glx (>> 1)'
12 insertinstalledpackage 'libgl1-foo-glx' 'amd64,i386' '1' 'Depends: libfoo (= 1)
13 Multi-Arch: same'
14 insertinstalledpackage 'libfoo' 'amd64,i386' '1' 'Multi-Arch: same'
15
16 buildsimplenativepackage 'foo-driver' 'amd64' '2' 'stable' 'Depends: libfoo (= 2)
17 Recommends: libgl1-foo-glx (= 2)
18 Breaks: libgl1-foo-glx (<< 2), libgl1-foo-glx (>> 2)'
19 buildsimplenativepackage 'libgl1-foo-glx' 'amd64,i386' '2' 'stable' 'Depends: libfoo (= 2)
20 Multi-Arch: same'
21 buildsimplenativepackage 'libfoo' 'amd64,i386' '2' 'stable' 'Multi-Arch: same'
22
23 setupaptarchive
24
25 testequalor2 'Reading package lists...
26 Building dependency tree...
27 The following packages will be upgraded:
28 foo-driver libfoo libfoo:i386 libgl1-foo-glx libgl1-foo-glx:i386
29 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
30 Inst libgl1-foo-glx [1] (2 stable [amd64]) [libgl1-foo-glx:amd64 on libgl1-foo-glx:i386] [libgl1-foo-glx:i386 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:amd64] [libgl1-foo-glx:i386 foo-driver:amd64 ]
31 Inst libgl1-foo-glx:i386 [1] (2 stable [i386]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:i386] [foo-driver:amd64 ]
32 Inst foo-driver [1] (2 stable [amd64]) []
33 Inst libfoo:i386 [1] (2 stable [i386]) [libfoo:amd64 on libfoo:i386] [libfoo:i386 on libfoo:amd64] [libfoo:amd64 ]
34 Inst libfoo [1] (2 stable [amd64])
35 Conf libfoo:i386 (2 stable [i386])
36 Conf libfoo (2 stable [amd64])
37 Conf libgl1-foo-glx:i386 (2 stable [i386])
38 Conf libgl1-foo-glx (2 stable [amd64])
39 Conf foo-driver (2 stable [amd64])' 'Reading package lists...
40 Building dependency tree...
41 The following packages will be upgraded:
42 foo-driver libfoo libfoo:i386 libgl1-foo-glx libgl1-foo-glx:i386
43 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
44 Inst libgl1-foo-glx [1] (2 stable [amd64]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [libgl1-foo-glx:amd64 on libgl1-foo-glx:i386] [libgl1-foo-glx:i386 on libgl1-foo-glx:amd64] [foo-driver:amd64 libgl1-foo-glx:i386 ]
45 Inst libgl1-foo-glx:i386 [1] (2 stable [i386]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:i386] [foo-driver:amd64 ]
46 Inst foo-driver [1] (2 stable [amd64]) []
47 Inst libfoo:i386 [1] (2 stable [i386]) [libfoo:amd64 on libfoo:i386] [libfoo:i386 on libfoo:amd64] [libfoo:amd64 ]
48 Inst libfoo [1] (2 stable [amd64])
49 Conf libfoo:i386 (2 stable [i386])
50 Conf libfoo (2 stable [amd64])
51 Conf libgl1-foo-glx:i386 (2 stable [i386])
52 Conf libgl1-foo-glx (2 stable [amd64])
53 Conf foo-driver (2 stable [amd64])' aptget dist-upgrade -s
54
55 testsuccess aptget dist-upgrade -y -o Debug::pkgPackageManager=1 -o Debug::pkgOrderList=1