blob: d0a7643fc01dc2967d832942e8726b39a8549d78 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
set -u
. "$TESTSDIR"/test.inc
mkdir conf
cat > conf/distributions <<EOF
Codename: o
Architectures: a
Components: e
DebIndices: Packages .
EOF
testrun - -b . export o 3<<EOF
stdout
$(odb)
-v1*=Exporting o...
-v2*=Created directory "./dists"
-v2*=Created directory "./dists/o"
-v2*=Created directory "./dists/o/e"
-v2*=Created directory "./dists/o/e/binary-a"
-v6*= exporting 'o|e|a'...
-v6*= creating './dists/o/e/binary-a/Packages' (uncompressed)
EOF
testrun - -b . remove o nothing 3<<EOF
stderr
-v0*=Not removed as not found: nothing
stdout
-v0*=Exporting indices...
-v6*= looking for changes in 'o|e|a'...
EOF
cat >> conf/distributions <<EOF
Signed-By: test
EOF
testrun - -b . export o 3<<EOF
stdout
-v1*=Exporting o...
-v6*= exporting 'o|e|a'...
-v6*= replacing './dists/o/e/binary-a/Packages' (uncompressed)
EOF
dodo grep 'Signed-By: test' dists/o/Release
testrun - -b . remove o nothing 3<<EOF
stderr
-v0*=Not removed as not found: nothing
stdout
-v0*=Exporting indices...
-v6*= looking for changes in 'o|e|a'...
EOF
dodo grep 'Signed-By: test' dists/o/Release
cat >> conf/distributions <<EOF
ValidFor: 100d
EOF
testrun - -b . export o 3<<EOF
stdout
-v1*=Exporting o...
-v6*= exporting 'o|e|a'...
-v6*= replacing './dists/o/e/binary-a/Packages' (uncompressed)
EOF
dodo grep '^Valid-Until:' dists/o/Release
testrun - -b . --export=lookedat remove o nothing 3<<EOF
stderr
-v0*=Not removed as not found: nothing
stdout
-v0*=Exporting indices...
-v6*= looking for changes in 'o|e|a'...
EOF
dodo grep '^Valid-Until:' dists/o/Release
rm -r conf db dists
testsuccess
|