]>
Commit | Line | Data |
---|---|---|
966640d8 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | local TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture "i386" | |
9 | setupflataptarchive | |
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 | predependstest() { | |
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 | predependstest "gawk | mawk" | |
39 | predependstest "mawk | gawk" | |
40 | ||
41 | predependstest "aawk | mawk | gawk" | |
42 | predependstest "aawk | gawk | mawk" | |
43 | ||
44 | predependstest "gawk | awk" | |
45 | predependstest "aawk | gawk | awk" | |
46 | ||
47 | predependstest "mawk | awk" | |
48 | ||
49 | predependstest "awk | gawk" | |
50 | predependstest "awk | gawk | aawk" | |
51 | ||
52 | predependstest "awk | mawk" | |
53 | ||
54 | predependstest "aawk | awk" | |
55 | predependstest "awk | aawk" | |
56 | ||
57 | predependstest "awk" | |
58 | ||
59 | # aptget install gawk mawk- -sqq -o Debug::pkgOrderList=1 #-o Debug::pkgPackageManager=1 |