]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | ||
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" | |
5 | . "$TESTDIR/framework" | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture 'native' | |
9 | ||
10 | cat > aptarchive/Sources <<EOF | |
11 | Package: space-before-comma | |
12 | Binary: space-before-comma1 , space-before-comma2 | |
13 | Version: 1.0 | |
14 | Maintainer: Joe Sixpack <joe@example.org> | |
15 | Architecture: all | |
16 | ||
17 | Package: broken-field | |
18 | Binary:, broken-field2 | |
19 | Version: 1.0 | |
20 | Maintainer: Joe Sixpack <joe@example.org> | |
21 | Architecture: all | |
22 | ||
23 | Package: broken-field-b | |
24 | Binary: , broken-field-b2 | |
25 | Version: 1.0 | |
26 | Maintainer: Joe Sixpack <joe@example.org> | |
27 | Architecture: all | |
28 | EOF | |
29 | ||
30 | setupaptarchive --no-update | |
31 | ||
32 | testsuccess aptget update | |
33 | testsuccess aptcache showsrc space-before-comma1 | |
34 | testsuccess aptcache showsrc broken-field2 | |
35 | testsuccess aptcache showsrc broken-field-b2 |