blob: 7188b978fd08cdb17c380961df43280014def7be (
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
59
60
61
62
63
|
#!/bin/sh
set -e
TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'i386' 'armel'
insertpackage 'unstable' 'foo' 'all' '1.0'
insertpackage 'unstable' 'bar' 'all' '1.0'
insertpackage 'unstable' 'baz' 'all' '1.0'
setupaptarchive
rm rootdir/etc/apt/sources.list.d/apt-test-unstable-deb.list
cat > rootdir/etc/apt/sources.list.d/apt-test-unstable-deb.sources << EOF
Types: deb
URIs: file://${TMPWORKINGDIRECTORY}/aptarchive
Suites: unstable
Components: main
Include: foo
EOF
testsuccess apt update
testsuccessequal "foo/unstable 1.0 all" apt list -qq
cat > rootdir/etc/apt/sources.list.d/apt-test-unstable-deb.sources << EOF
Types: deb
URIs: file://${TMPWORKINGDIRECTORY}/aptarchive
Suites: unstable
Components: main
Exclude: foo bar
EOF
testsuccess apt update
testsuccessequal "baz/unstable 1.0 all" apt list -qq
cat > rootdir/etc/apt/sources.list.d/apt-test-unstable-deb.sources << EOF
Types: deb
URIs: file://${TMPWORKINGDIRECTORY}/aptarchive
Suites: unstable
Components: main
Exclude: foo , baz
EOF
testsuccess apt update
testsuccessequal "bar/unstable 1.0 all" apt list -qq
cat > rootdir/etc/apt/sources.list.d/apt-test-unstable-deb.sources << EOF
Types: deb
URIs: file://${TMPWORKINGDIRECTORY}/aptarchive
Suites: unstable
Components: main
Include: foo
Exclude: foo , baz
EOF
testfailureequal "E: Both 'Include' and 'Exclude' specified in ${TMPWORKINGDIRECTORY}/rootdir/etc/apt/sources.list.d/apt-test-unstable-deb.sources:1
E: The list of sources could not be read." apt update
|