]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-673536-pre-depends-breaks-loop
Don't download "optional" files not in Release :/.
[apt.git] / test / integration / test-bug-673536-pre-depends-breaks-loop
CommitLineData
177645ed
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
177645ed
DK
6setupenvironment
7configarchitecture 'native'
8
0eb4af9d
DK
9buildsimplenativepackage 'advanced' 'native' '1' 'stable'
10buildsimplenativepackage 'advanced' 'native' '2' 'unstable' 'Pre-Depends: basic'
177645ed 11buildsimplenativepackage 'basic' 'native' '2' 'unstable' 'Pre-Depends: common'
0eb4af9d
DK
12
13buildsimplenativepackage 'common' 'native' '2~conflict' 'unstable-conflict' 'Conflicts: advanced (<= 1)'
e7d4e0cf 14buildsimplenativepackage 'common' 'native' '2~break' 'unstable-break' 'Breaks: advanced (<= 1)'
177645ed
DK
15
16setupaptarchive
17
18# we check with 'real' packages here as the simulation reports a 'Conf broken'
19# which is technical correct for the simulation, but testing errormsg is ugly
20
0eb4af9d
DK
21cp -a rootdir/var/lib/dpkg/status dpkg.status.backup
22
23testloopbreak() {
24 cp -a dpkg.status.backup rootdir/var/lib/dpkg/status
25 rm -f rootdir/var/lib/apt/extended_states
26
1df24acf 27 testsuccess aptget install advanced=1 -y -t "$1"
0eb4af9d
DK
28 testdpkginstalled advanced
29 testdpkgnotinstalled basic common
30
1df24acf 31 testsuccess aptget dist-upgrade -y -t "$1"
0eb4af9d
DK
32 testdpkginstalled advanced basic common
33}
177645ed 34
0eb4af9d
DK
35testloopbreak 'unstable-break'
36testloopbreak 'unstable-conflict'