]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-590438-broken-provides-thanks-to-remove-order
add sbin directories to PATH to avoid dpkg warnings
[apt.git] / test / integration / test-bug-590438-broken-provides-thanks-to-remove-order
CommitLineData
966640d8
DK
1#!/bin/sh
2set -e
3
9962ae93 4TESTDIR=$(readlink -f $(dirname $0))
966640d8
DK
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
ce9864a8 9setupaptarchive
966640d8
DK
10
11pkgbasefile="Package: base-files
12Status: install ok installed
13Essential: yes
14Priority: required
15Section: admin
16Installed-Size: 472
17Maintainer: Santiago Vila <sanvila@debian.org>
18Architecture: i386
19Version: 5.8
20Replaces: base, dpkg (<= 1.15.0), miscutils
21Provides: base
22Filename: pool/main/b/base-files/base-files_5.8_i386.deb
23Size: 73986
24MD5sum: 8489687ce10e656babd467c9ee389349
25Description-de: Verschiedene Dateien für das Basis-System von Debian"
26
685625bd 27predependsgawk() {
543b0abf 28 rm rootdir/var/cache/apt/*.bin
966640d8
DK
29 cp $TESTDIR/$(echo "$(basename $0)" | sed 's/test-/status-/') rootdir/var/lib/dpkg/status
30 echo "$pkgbasefile
31Pre-Depends: $1
32" >> rootdir/var/lib/dpkg/status
33 testequal "Inst gawk (1:3.1.7.dfsg-5 localhost [i386])
34Conf gawk (1:3.1.7.dfsg-5 localhost [i386])
35Remv mawk [1.3.3-15]" aptget install gawk mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g')
36}
37
685625bd
DK
38predependsgawk "gawk | mawk"
39predependsgawk "mawk | gawk"
966640d8 40
685625bd
DK
41predependsgawk "aawk | mawk | gawk"
42predependsgawk "aawk | gawk | mawk"
966640d8 43
685625bd
DK
44predependsgawk "gawk | awk"
45predependsgawk "aawk | gawk | awk"
966640d8 46
685625bd 47predependsgawk "mawk | awk"
966640d8 48
685625bd
DK
49predependsgawk "awk | gawk"
50predependsgawk "awk | gawk | aawk"
966640d8 51
685625bd 52predependsgawk "awk | mawk"
966640d8 53
685625bd
DK
54predependsgawk "aawk | awk"
55predependsgawk "awk | aawk"
966640d8 56
685625bd 57predependsgawk "awk"
966640d8 58
685625bd 59predependsgawk2() {
543b0abf 60 rm rootdir/var/cache/apt/*.bin
685625bd
DK
61 cp $TESTDIR/$(echo "$(basename $0)" | sed 's/test-/status-/') rootdir/var/lib/dpkg/status
62 echo "$pkgbasefile
63Pre-Depends: $1
64" >> rootdir/var/lib/dpkg/status
ca238ede
DK
65 testequalor2 "Inst coolstuff (1-1 localhost [all])
66Conf coolstuff (1-1 localhost [all])
685625bd
DK
67Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386])
68Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386])
ca238ede 69Remv mawk [1.3.3-15]" "Inst coolstuff (1-1 localhost [all])
685625bd 70Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386])
ca238ede 71Conf coolstuff (1-1 localhost [all])
685625bd
DK
72Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386])
73Remv mawk [1.3.3-15]" aptget install gawk2 mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g')
74}
75
76predependsgawk2 "gawk2 | mawk"
77predependsgawk2 "mawk | gawk2"
78
79predependsgawk2 "aawk | mawk | gawk2"
80predependsgawk2 "aawk | gawk2 | mawk"
81
82predependsgawk2 "gawk2 | awk"
83predependsgawk2 "aawk | gawk2 | awk"
84
85predependsgawk2 "mawk | awk"
86
87predependsgawk2 "awk | gawk2"
88predependsgawk2 "awk | gawk2 | aawk"
89
90predependsgawk2 "awk | mawk"
91
92predependsgawk2 "aawk | awk"
93predependsgawk2 "awk | aawk"
94
95predependsgawk2 "awk"
96
97
98# aptget install gawk2 mawk- -s #-o Debug::pkgOrderList=1 #-o Debug::pkgPackageManager=1