File: test-bug-720597-build-dep-purge

package info (click to toggle)
apt 1.0.9.8
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 16,100 kB
  • sloc: cpp: 50,948; sh: 11,941; xml: 4,130; makefile: 854; perl: 209; python: 28
file content (36 lines) | stat: -rwxr-xr-x 1,061 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
set -e

TESTDIR=$(readlink -f $(dirname $0))
. $TESTDIR/framework
setupenvironment
configarchitecture 'amd64'

insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
insertinstalledpackage 'pkga' 'all' '1'
buildsimplenativepackage 'pkgb' 'amd64' '1' 'stable' 'Conflicts: pkga'
buildsimplenativepackage 'pkgc' 'amd64' '1' 'stable' 'Build-Depends: pkgb'

setupaptarchive

testequal 'Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  pkga
The following NEW packages will be installed:
  pkgb
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Remv pkga [1]
Inst pkgb (1 stable [amd64])
Conf pkgb (1 stable [amd64])' aptget build-dep pkgc -s

testequal 'Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  pkga*
The following NEW packages will be installed:
  pkgb
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Purg pkga [1]
Inst pkgb (1 stable [amd64])
Conf pkgb (1 stable [amd64])' aptget build-dep pkgc -s --purge