]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-720597-build-dep-purge
ensure the right permissions as dpkg-deb ensists
[apt.git] / test / integration / test-bug-720597-build-dep-purge
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64'
8
9 insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
10 insertinstalledpackage 'pkga' 'all' '1'
11 buildsimplenativepackage 'pkgb' 'amd64' '1' 'stable' 'Conflicts: pkga'
12 buildsimplenativepackage 'pkgc' 'amd64' '1' 'stable' 'Build-Depends: pkgb'
13
14 setupaptarchive
15
16 testequal 'Reading package lists...
17 Building dependency tree...
18 The following packages will be REMOVED:
19 pkga
20 The following NEW packages will be installed:
21 pkgb
22 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
23 Remv pkga [1]
24 Inst pkgb (1 stable [amd64])
25 Conf pkgb (1 stable [amd64])' aptget build-dep pkgc -s
26
27 testequal 'Reading package lists...
28 Building dependency tree...
29 The following packages will be REMOVED:
30 pkga*
31 The following NEW packages will be installed:
32 pkgb
33 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
34 Purg pkga [1]
35 Inst pkgb (1 stable [amd64])
36 Conf pkgb (1 stable [amd64])' aptget build-dep pkgc -s --purge