]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-590438-broken-provides-thanks-to-remove-order
* apt-pkg/orderlist.cc:
[apt.git] / test / integration / test-bug-590438-broken-provides-thanks-to-remove-order
CommitLineData
966640d8
DK
1#!/bin/sh
2set -e
3
4local TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9setupflataptarchive
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
27predependstest() {
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
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
38predependstest "gawk | mawk"
39predependstest "mawk | gawk"
40
41predependstest "aawk | mawk | gawk"
42predependstest "aawk | gawk | mawk"
43
44predependstest "gawk | awk"
45predependstest "aawk | gawk | awk"
46
47predependstest "mawk | awk"
48
49predependstest "awk | gawk"
50predependstest "awk | gawk | aawk"
51
52predependstest "awk | mawk"
53
54predependstest "aawk | awk"
55predependstest "awk | aawk"
56
57predependstest "awk"
58
59# aptget install gawk mawk- -sqq -o Debug::pkgOrderList=1 #-o Debug::pkgPackageManager=1