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