blob: 7f8e4ad3d2f160ad8f124186e754e74d7488ff27 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#!/bin/sh
set -e
TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'i386'
insertpackage 'stable' 'build-depends' 'i386' '1'
insertpackage 'stable' 'foo' 'i386' '1'
insertinstalledpackage 'build-essential' 'i386' '1'
setupaptarchive
# This used to be interpreted as build-depends | foo
cat > foobar.dsc <<EOF
Format: 3.0 (native)
Source: foobar
Binary: foobar
Architecture: all
Version: 1
Maintainer: Joe Sixpack <joe@example.org>
Build-Depends: build-depends [i386] | build-depends [amd64], foo
Standards-Version: 3.9.8
EOF
testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
build-depends foo
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst build-depends (1 stable [i386])
Inst foo (1 stable [i386])
Conf build-depends (1 stable [i386])
Conf foo (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc
# This caused a segmentation fault
cat > foobar.dsc <<EOF
Format: 3.0 (native)
Source: foobar
Binary: foobar
Architecture: all
Version: 1
Maintainer: Joe Sixpack <joe@example.org>
Build-Depends: build-depends [i386] | build-depends [amd64]
Standards-Version: 3.9.8
EOF
testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
build-depends
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst build-depends (1 stable [i386])
Conf build-depends (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc
|