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