]>
Commit | Line | Data |
---|---|---|
966640d8 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
966640d8 DK |
6 | |
7 | setupenvironment | |
8 | configarchitecture "i386" | |
ce9864a8 | 9 | setupaptarchive |
966640d8 DK |
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 | ||
685625bd | 27 | predependsgawk() { |
3abb6a6a | 28 | cp "$TESTDIR/$(echo "$(basename "$0")" | sed 's/test-/status-/')" rootdir/var/lib/dpkg/status |
966640d8 DK |
29 | echo "$pkgbasefile |
30 | Pre-Depends: $1 | |
31 | " >> rootdir/var/lib/dpkg/status | |
25b86db1 | 32 | testsuccessequal "Inst gawk (1:3.1.7.dfsg-5 localhost [i386]) |
966640d8 DK |
33 | Conf gawk (1:3.1.7.dfsg-5 localhost [i386]) |
34 | Remv mawk [1.3.3-15]" aptget install gawk mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g') | |
35 | } | |
36 | ||
685625bd DK |
37 | predependsgawk "gawk | mawk" |
38 | predependsgawk "mawk | gawk" | |
966640d8 | 39 | |
685625bd DK |
40 | predependsgawk "aawk | mawk | gawk" |
41 | predependsgawk "aawk | gawk | mawk" | |
966640d8 | 42 | |
685625bd DK |
43 | predependsgawk "gawk | awk" |
44 | predependsgawk "aawk | gawk | awk" | |
966640d8 | 45 | |
685625bd | 46 | predependsgawk "mawk | awk" |
966640d8 | 47 | |
685625bd DK |
48 | predependsgawk "awk | gawk" |
49 | predependsgawk "awk | gawk | aawk" | |
966640d8 | 50 | |
685625bd | 51 | predependsgawk "awk | mawk" |
966640d8 | 52 | |
685625bd DK |
53 | predependsgawk "aawk | awk" |
54 | predependsgawk "awk | aawk" | |
966640d8 | 55 | |
685625bd | 56 | predependsgawk "awk" |
966640d8 | 57 | |
685625bd | 58 | predependsgawk2() { |
3abb6a6a | 59 | cp "$TESTDIR/$(echo "$(basename "$0")" | sed 's/test-/status-/')" rootdir/var/lib/dpkg/status |
685625bd DK |
60 | echo "$pkgbasefile |
61 | Pre-Depends: $1 | |
62 | " >> rootdir/var/lib/dpkg/status | |
ca238ede DK |
63 | testequalor2 "Inst coolstuff (1-1 localhost [all]) |
64 | Conf coolstuff (1-1 localhost [all]) | |
685625bd DK |
65 | Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386]) |
66 | Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386]) | |
ca238ede | 67 | Remv mawk [1.3.3-15]" "Inst coolstuff (1-1 localhost [all]) |
685625bd | 68 | Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386]) |
ca238ede | 69 | Conf coolstuff (1-1 localhost [all]) |
685625bd DK |
70 | Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386]) |
71 | Remv mawk [1.3.3-15]" aptget install gawk2 mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g') | |
72 | } | |
73 | ||
74 | predependsgawk2 "gawk2 | mawk" | |
75 | predependsgawk2 "mawk | gawk2" | |
76 | ||
77 | predependsgawk2 "aawk | mawk | gawk2" | |
78 | predependsgawk2 "aawk | gawk2 | mawk" | |
79 | ||
80 | predependsgawk2 "gawk2 | awk" | |
81 | predependsgawk2 "aawk | gawk2 | awk" | |
82 | ||
83 | predependsgawk2 "mawk | awk" | |
84 | ||
85 | predependsgawk2 "awk | gawk2" | |
86 | predependsgawk2 "awk | gawk2 | aawk" | |
87 | ||
88 | predependsgawk2 "awk | mawk" | |
89 | ||
90 | predependsgawk2 "aawk | awk" | |
91 | predependsgawk2 "awk | aawk" | |
92 | ||
93 | predependsgawk2 "awk" | |
94 | ||
95 | ||
96 | # aptget install gawk2 mawk- -s #-o Debug::pkgOrderList=1 #-o Debug::pkgPackageManager=1 |