]> git.saurik.com Git - apt.git/blame - test/integration/test-prevent-markinstall-multiarch-same-versionscrew
don't ask server if we have entire file in partial/
[apt.git] / test / integration / test-prevent-markinstall-multiarch-same-versionscrew
CommitLineData
486d190d
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
486d190d
DK
6setupenvironment
7configarchitecture 'amd64' 'i386' 'armel'
8
9insertpackage 'stable' 'allarchs' 'all' '1'
10insertpackage 'unstable' 'allarchs' 'all' '2'
11
10e100e5 12insertpackage 'stable,installed' 'fine' 'i386,amd64' '1' 'Multi-Arch: same'
486d190d
DK
13insertpackage 'unstable' 'fine' 'amd64,i386' '2' 'Multi-Arch: same'
14
15insertinstalledpackage 'fine-installed' 'i386,amd64' '1' 'Multi-Arch: same'
16insertpackage 'stable' 'fine-installed' 'i386,amd64,armel' '1' 'Multi-Arch: same'
17insertpackage 'unstable' 'fine-installed' 'i386,amd64' '2' 'Multi-Arch: same'
18
10e100e5 19insertpackage 'stable,installed' 'out-of-sync-native' 'i386,amd64' '1' 'Multi-Arch: same'
486d190d
DK
20insertpackage 'unstable' 'out-of-sync-native' 'amd64' '2' 'Multi-Arch: same'
21
10e100e5 22insertpackage 'stable,installed' 'out-of-sync-foreign' 'i386,amd64' '1' 'Multi-Arch: same'
486d190d
DK
23insertpackage 'unstable' 'out-of-sync-foreign' 'i386' '2' 'Multi-Arch: same'
24
25insertinstalledpackage 'out-of-sync-gone-native' 'i386,amd64' '1' 'Multi-Arch: same'
26insertpackage 'stable' 'out-of-sync-gone-native' 'i386' '1' 'Multi-Arch: same'
27insertpackage 'unstable' 'out-of-sync-gone-native' 'i386' '2' 'Multi-Arch: same'
28
29insertinstalledpackage 'out-of-sync-gone-foreign' 'i386,amd64' '1' 'Multi-Arch: same'
30insertpackage 'stable' 'out-of-sync-gone-foreign' 'amd64' '1' 'Multi-Arch: same'
31insertpackage 'unstable' 'out-of-sync-gone-foreign' 'amd64' '2' 'Multi-Arch: same'
32
33insertpackage 'stable' 'libsame2' 'i386' '1' 'Multi-Arch: same'
34insertpackage 'unstable' 'libsame2' 'amd64' '2' 'Multi-Arch: same'
35insertpackage 'unstable' 'depender2' 'all' '2' 'Depends: libsame2 (= 2)'
36insertpackage 'stable' 'libsame3' 'i386' '1' 'Multi-Arch: same'
37insertpackage 'unstable' 'libsame3' 'i386,amd64' '3' 'Multi-Arch: same'
38insertpackage 'unstable' 'depender3' 'all' '3' 'Depends: libsame3 (= 3)'
39setupaptarchive
40
25b86db1 41testsuccessequal 'Reading package lists...
486d190d 42Building dependency tree...
2a884c61 43Calculating upgrade...
486d190d
DK
44The following packages will be REMOVED:
45 out-of-sync-gone-foreign:i386 out-of-sync-gone-native
46The following packages have been kept back:
47 out-of-sync-foreign:i386 out-of-sync-native
48The following packages will be upgraded:
49 fine fine:i386 fine-installed fine-installed:i386 out-of-sync-gone-foreign
50 out-of-sync-gone-native:i386
516 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
52Remv out-of-sync-gone-foreign:i386 [1]
53Remv out-of-sync-gone-native [1]
54Inst fine [1] (2 unstable [amd64]) [fine:amd64 on fine:i386] [fine:i386 on fine:amd64] [fine:i386 ]
55Inst fine:i386 [1] (2 unstable [i386])
486d190d
DK
56Inst fine-installed [1] (2 unstable [amd64]) [fine-installed:amd64 on fine-installed:i386] [fine-installed:i386 on fine-installed:amd64] [fine-installed:i386 ]
57Inst fine-installed:i386 [1] (2 unstable [i386])
486d190d
DK
58Inst out-of-sync-gone-foreign [1] (2 unstable [amd64])
59Inst out-of-sync-gone-native:i386 [1] (2 unstable [i386])
0caa5a4c
DK
60Conf fine:i386 (2 unstable [i386])
61Conf fine (2 unstable [amd64])
62Conf fine-installed:i386 (2 unstable [i386])
63Conf fine-installed (2 unstable [amd64])
486d190d
DK
64Conf out-of-sync-gone-foreign (2 unstable [amd64])
65Conf out-of-sync-gone-native:i386 (2 unstable [i386])' aptget dist-upgrade -s #-o Debug::pkgDepCache::Marker=1
66
67rm rootdir/var/lib/dpkg/status
68insertinstalledpackage 'libsame2' 'i386' '1' 'Multi-Arch: same'
69insertinstalledpackage 'libsame3' 'i386' '1' 'Multi-Arch: same'
70
71# the error message isn't great, but better than nothing, right?
25b86db1 72testfailureequal 'Reading package lists...
486d190d
DK
73Building dependency tree...
74Some packages could not be installed. This may mean that you have
75requested an impossible situation or if you are using the unstable
76distribution that some required packages have not yet been created
77or been moved out of Incoming.
78The following information may help to resolve the situation:
79
80The following packages have unmet dependencies:
81 depender2 : Depends: libsame2 (= 2) but it is not going to be installed
82E: Unable to correct problems, you have held broken packages.' aptget install depender2 -s
83
25b86db1 84testsuccessequal 'Reading package lists...
486d190d 85Building dependency tree...
e7ebb414 86The following additional packages will be installed:
486d190d
DK
87 libsame3:i386 libsame3
88The following NEW packages will be installed:
89 depender3 libsame3
90The following packages will be upgraded:
91 libsame3:i386
921 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
93Inst libsame3:i386 [1] (3 unstable [i386])
94Inst libsame3 (3 unstable [amd64])
95Inst depender3 (3 unstable [all])
96Conf libsame3:i386 (3 unstable [i386])
97Conf libsame3 (3 unstable [amd64])
98Conf depender3 (3 unstable [all])' aptget install depender3 -s