]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-683786-build-dep-on-virtual-packages
* cmdline/apt-get.cc:
[apt.git] / test / integration / test-bug-683786-build-dep-on-virtual-packages
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64' 'armel'
8
9 insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
10
11 insertpackage 'unstable' 'po-debconf' 'all' '1'
12 insertsource 'unstable' 'dash' 'any' '1' 'Build-Depends: po-debconf'
13 insertpackage 'unstable' 'make-po-debconf-pure-virtual' 'armel' '1' 'Depends: po-debconf'
14
15 insertpackage 'unstable' 'po-debconf' 'amd64' '1'
16 insertsource 'unstable' 'diffutils' 'any' '1' 'Build-Depends: texi2html'
17
18 setupaptarchive
19
20 testequal 'Package: po-debconf:armel
21 Versions:
22
23 Reverse Depends:
24 make-po-debconf-pure-virtual:armel,po-debconf:armel
25 Dependencies:
26 Provides:
27 Reverse Provides: ' aptcache showpkg po-debconf:armel
28 testequal 'N: Unable to locate package texi2html' aptcache showpkg texi2html:armel -q=0
29
30 testequal 'Reading package lists...
31 Building dependency tree...
32 The following NEW packages will be installed:
33 po-debconf
34 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
35 Inst po-debconf (1 unstable, unstable [all])
36 Conf po-debconf (1 unstable, unstable [all])' aptget build-dep dash -s
37
38 testequal 'Reading package lists...
39 Building dependency tree...
40 E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s
41
42 testequal 'Reading package lists...
43 Building dependency tree...
44 E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s