blob: a2b4bbd4441cc4558d1e45271de52d18954e4ef0 (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
|
set -u
. "$TESTSDIR"/test.inc
dodo test ! -d db
mkdir -p conf
cat > conf/distributions <<EOF
Codename: 1234
Components: component
Architectures: something source
DebIndices: Packages .xz
DscIndices: Sources .xz
Update: test
EOF
cat > conf/updates <<EOF
Name: test
GetInRelease: no
VerifyRelease: blindtrust
Method: file:$WORKDIR/in
FilterList: error filterlist
FilterSrcList: error filtersrclist
Suite: 4321
EOF
echo > conf/filterlist
echo > conf/filtersrclist
testrun - -b . export 1234 3<<EOF
stderr
stdout
$(odb)
-v1*=Exporting 1234...
-v2*=Created directory "./dists"
-v2*=Created directory "./dists/1234"
-v2*=Created directory "./dists/1234/component"
-v2*=Created directory "./dists/1234/component/binary-something"
-v6*= exporting '1234|component|something'...
-v6*= creating './dists/1234/component/binary-something/Packages' (xzed)
-v2*=Created directory "./dists/1234/component/source"
-v6*= exporting '1234|component|source'...
-v6*= creating './dists/1234/component/source/Sources' (xzed)
EOF
mkdir lists
mkdir -p in/dists/4321
touch in/dists/4321/Release
testrun - -b . update 1234 3<<EOF
returns 255
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
*=Missing checksums in Release file './lists/test_4321_Release'!
-v0*=There have been errors!
stdout
EOF
echo "SHA256:" > in/dists/4321/Release
testrun - -b . update 1234 3<<EOF
returns 254
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
*=Could not find 'component/binary-something/Packages' within './lists/test_4321_Release'
-v0*=There have been errors!
stdout
EOF
mkdir -p in/dists/4321/component/source in/dists/4321/component/binary-something
xz -c < /dev/null > in/dists/4321/component/source/Sources.xz
xz -c < /dev/null > in/dists/4321/component/binary-something/Packages.xz
cat > in/dists/4321/Release <<EOF
SHA256:
$EMPTYSHA2 component/source/Sources
$(sha2andsize in/dists/4321/component/source/Sources.xz) component/source/Sources.xz
$(sha2andsize in/dists/4321/component/binary-something/Packages.xz) component/binary-something/Packages.xz
EOF
testrun - -b . update 1234 3<<EOF
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/component/source/Sources.xz'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/component/source/Sources.xz'
-v2*=Uncompress '$WORKDIR/in/dists/4321/component/source/Sources.xz' into './lists/test_4321_component_Sources' using '/usr/bin/unxz'...
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/component/binary-something/Packages.xz'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/component/binary-something/Packages.xz'
-v2*=Uncompress '$WORKDIR/in/dists/4321/component/binary-something/Packages.xz' into './lists/test_4321_component_something_Packages' using '/usr/bin/unxz'...
stdout
-v0*=Calculating packages to get...
-v3*= processing updates for '1234|component|source'
-v5*= reading './lists/test_4321_component_Sources'
-v3*= processing updates for '1234|component|something'
-v5*= reading './lists/test_4321_component_something_Packages'
EOF
# an extremely manually built package to ensure only some things are there:
mkdir -p build/test-1/src
echo a > build/test-1/src/sourcefile
srcorigname=test_1.orig.tar.xz
tar -cJf build/${srcorigname} -C build test-1
srcorigsha=$(sha2andsize build/${srcorigname})
mkdir -p build/test-1/debian
cat > build/test-1/debian/control <<EOF
Source: test
Maintainer: <me@me>
Package: name
Architecture: all
EOF
touch build/test-1/debian/changelog
srcdebname=test_1-1.debian.tar.xz
tar -cJf build/${srcdebname} -C build/test-1 debian
srcdebsha=$(sha2andsize build/${srcdebname})
srcdscname=test_1-1.dsc
cat > build/${srcdscname} <<EOF
Source: test
EOF
srcdscsha=$(sha2andsize build/${srcdscname})
mkdir -p build/name/opt/
echo trash > build/name/opt/trash
mkdir -p build/name/DEBIAN
cat > build/name/DEBIAN/control <<EOF
Package: name
Architecture: all
Version: 17-2
Source: test (1-1)
Maintainer: <me@me>
Description: some
description
EOF
bindebname=name_17-2_all.deb
dpkg-deb -Z xz -b build/name build/${bindebname}
bindebsha=$(sha2only build/${bindebname})
bindebsize=$(sizeonly build/${bindebname})
rm in/dists/4321/component/binary-something/Packages.xz
cat > in/dists/4321/component/binary-something/Packages <<EOF
Package: name
Version: 17-2
Source: test (1-1)
Maintainer: <me@me>
Architecture: all
Size: ${bindebsize}
SHA256: ${bindebsha}
Filename: ../build/${bindebname}
Description: some
description
EOF
packagessha=$(sha2andsize in/dists/4321/component/binary-something/Packages)
xz in/dists/4321/component/binary-something/Packages
packagesxzsha=$(sha2andsize in/dists/4321/component/binary-something/Packages.xz)
rm in/dists/4321/component/source/Sources.xz
cat > in/dists/4321/component/source/Sources <<EOF
Package: test
Version: 1-1
Maintainer: <me@me>
Directory: ../build
Checksums-Sha256:
${srcdscsha} ${srcdscname}
${srcdebsha} ${srcdebname}
${srcorigsha} ${srcorigname}
EOF
sourcessha=$(sha2andsize in/dists/4321/component/source/Sources)
xz in/dists/4321/component/source/Sources
sourcesxzsha=$(sha2andsize in/dists/4321/component/source/Sources.xz)
cat > in/dists/4321/Release <<EOF
SHA256:
$sourcessha component/source/Sources
$sourcesxzsha component/source/Sources.xz
$packagessha component/binary-something/Packages
$packagesxzsha component/binary-something/Packages.xz
EOF
mkdir -p pool/component/t/test
testrun - -b . update 1234 3<<EOF
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/component/source/Sources.xz'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/component/source/Sources.xz'
-v2*=Uncompress '$WORKDIR/in/dists/4321/component/source/Sources.xz' into './lists/test_4321_component_Sources' using '/usr/bin/unxz'...
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/component/binary-something/Packages.xz'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/component/binary-something/Packages.xz'
-v2*=Uncompress '$WORKDIR/in/dists/4321/component/binary-something/Packages.xz' into './lists/test_4321_component_something_Packages' using '/usr/bin/unxz'...
*=Package name marked to be unexpected('error'): 'test'!
*=Stop reading further chunks from './lists/test_4321_component_Sources' due to previous errors.
*=There have been errors!
returns 255
stdout
-v0*=Calculating packages to get...
-v3*= processing updates for '1234|component|source'
-v5*= reading './lists/test_4321_component_Sources'
EOF
echo "test =1-1" > conf/filtersrclist
testrun - -b . update 1234 3<<EOF
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
*=Package name marked to be unexpected('error'): 'name'!
*=Stop reading further chunks from './lists/test_4321_component_something_Packages' due to previous errors.
*=There have been errors!
returns 255
stdout
-v0*=Calculating packages to get...
-v3*= processing updates for '1234|component|source'
-v5*= reading './lists/test_4321_component_Sources'
-v3*= processing updates for '1234|component|something'
-v5*= reading './lists/test_4321_component_something_Packages'
EOF
echo "name =17-2" > conf/filterlist
testrun - -b . update 1234 3<<EOF
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
-v6=aptmethod start 'file:$WORKDIR/in/../build/${srcdscname}'
-v1*=aptmethod got 'file:$WORKDIR/in/../build/${srcdscname}'
-v2*=Linking file '$WORKDIR/in/../build/${srcdscname}' to './pool/component/t/test/${srcdscname}'...
-v6=aptmethod start 'file:$WORKDIR/in/../build/${srcdebname}'
-v1*=aptmethod got 'file:$WORKDIR/in/../build/${srcdebname}'
-v2*=Linking file '$WORKDIR/in/../build/${srcdebname}' to './pool/component/t/test/${srcdebname}'...
-v6=aptmethod start 'file:$WORKDIR/in/../build/${srcorigname}'
-v1*=aptmethod got 'file:$WORKDIR/in/../build/${srcorigname}'
-v2*=Linking file '$WORKDIR/in/../build/${srcorigname}' to './pool/component/t/test/${srcorigname}'...
-v6=aptmethod start 'file:$WORKDIR/in/../build/${bindebname}'
-v1*=aptmethod got 'file:$WORKDIR/in/../build/${bindebname}'
-v2*=Linking file '$WORKDIR/in/../build/${bindebname}' to './pool/component/t/test/${bindebname}'...
stdout
$(ofa pool/component/t/test/${srcdscname})
$(ofa pool/component/t/test/${srcdebname})
$(ofa pool/component/t/test/${srcorigname})
$(ofa pool/component/t/test/${bindebname})
-v0*=Calculating packages to get...
-v3*= processing updates for '1234|component|source'
-v5*= reading './lists/test_4321_component_Sources'
-v3*= processing updates for '1234|component|something'
-v5*= reading './lists/test_4321_component_something_Packages'
-v0*=Getting packages...
-v1*=Shutting down aptmethods...
-v0*=Installing (and possibly deleting) packages...
$(opa 'test' unset '1234' 'component' 'source' 'dsc')
$(opa 'name' x '1234' 'component' 'something' 'deb')
-v0*=Exporting indices...
-v6*= looking for changes in '1234|component|something'...
-v6*= replacing './dists/1234/component/binary-something/Packages' (xzed)
-v6*= looking for changes in '1234|component|source'...
-v6*= replacing './dists/1234/component/source/Sources' (xzed)
EOF
rm -r build in lists
echo "update-rules done, now pull-rules"
cat >> conf/distributions <<EOF
Codename: dest
Components: component
Architectures: something source
DebIndices: Packages .xz
DscIndices: Sources .xz
Pull: test
EOF
cat > conf/pulls <<EOF
Name: test
From: 1234
FilterList: error filterlist
FilterSrcList: error filtersrclist
EOF
echo > conf/filterlist
echo > conf/filtersrclist
testrun - -b . export dest 3<<EOF
stderr
stdout
-v1*=Exporting dest...
-v2*=Created directory "./dists/dest"
-v2*=Created directory "./dists/dest/component"
-v2*=Created directory "./dists/dest/component/binary-something"
-v6*= exporting 'dest|component|something'...
-v6*= creating './dists/dest/component/binary-something/Packages' (xzed)
-v2*=Created directory "./dists/dest/component/source"
-v6*= exporting 'dest|component|source'...
-v6*= creating './dists/dest/component/source/Sources' (xzed)
EOF
testrun - -b . pull dest 3<<EOF
stderr
*=Package name marked to be unexpected('error'): 'test'!
*=There have been errors!
returns 255
stdout
-v0*=Calculating packages to pull...
-v3*= pulling into 'dest|component|source'
-v5*= looking what to get from '1234|component|source'
EOF
echo "test =1-1" > conf/filtersrclist
testrun - -b . pull dest 3<<EOF
stderr
*=Package name marked to be unexpected('error'): 'name'!
*=There have been errors!
returns 255
stdout
-v0*=Calculating packages to pull...
-v3*= pulling into 'dest|component|source'
-v5*= looking what to get from '1234|component|source'
-v3*= pulling into 'dest|component|something'
-v5*= looking what to get from '1234|component|something'
EOF
echo "name =17-2" > conf/filterlist
testrun - -b . pull dest 3<<EOF
stdout
-v0*=Calculating packages to pull...
-v3*= pulling into 'dest|component|source'
-v5*= looking what to get from '1234|component|source'
-v3*= pulling into 'dest|component|something'
-v5*= looking what to get from '1234|component|something'
-v0*=Installing (and possibly deleting) packages...
$(opa 'test' unset 'dest' 'component' 'source' 'dsc')
$(opa 'name' x 'dest' 'component' 'something' 'deb')
-v0*=Exporting indices...
-v6*= looking for changes in 'dest|component|something'...
-v6*= replacing './dists/dest/component/binary-something/Packages' (xzed)
-v6*= looking for changes in 'dest|component|source'...
-v6*= replacing './dists/dest/component/source/Sources' (xzed)
EOF
echo "and now the same again with a new version"
mkdir -p build/test-1/debian
cat > build/test-1/debian/control <<EOF
Source: test
Maintainer: <me@me>
Package: name
Architecture: all
EOF
echo "2" > build/test-1/debian/changelog
src2debname=test_1-2.debian.tar.xz
tar -cJf build/${src2debname} -C build/test-1 debian
src2debsha=$(sha2andsize build/${src2debname})
src2dscname=test_1-2.dsc
cat > build/${src2dscname} <<EOF
Source: test
Maintainer: <me@me>
EOF
src2dscsha=$(sha2andsize build/${src2dscname})
mkdir -p build/name/opt/
echo trash > build/name/opt/trash
mkdir -p build/name/DEBIAN
cat > build/name/DEBIAN/control <<EOF
Package: name
Architecture: all
Version: 17-3
Source: test (1-2)
Maintainer: <me@me>
Description: some
description
EOF
bin2debname=name_17-3_all.deb
dpkg-deb -Z xz -b build/name build/${bin2debname}
bin2debsha=$(sha2only build/${bin2debname})
bin2debsize=$(sizeonly build/${bin2debname})
mkdir -p in/dists/4321/component/binary-something in/dists/4321/component/source
cat > in/dists/4321/component/binary-something/Packages <<EOF
Package: name
Version: 17-3
Source: test (1-2)
Maintainer: <me@me>
Architecture: all
Size: ${bin2debsize}
SHA256: ${bin2debsha}
Filename: ../build/${bin2debname}
Description: some
description
EOF
packagessha=$(sha2andsize in/dists/4321/component/binary-something/Packages)
xz in/dists/4321/component/binary-something/Packages
packagesxzsha=$(sha2andsize in/dists/4321/component/binary-something/Packages.xz)
cat > in/dists/4321/component/source/Sources <<EOF
Package: test
Version: 1-2
Maintainer: <me@me>
Directory: ../build
Checksums-Sha256:
${src2dscsha} ${src2dscname}
${src2debsha} ${src2debname}
${srcorigsha} ${srcorigname}
EOF
sourcessha=$(sha2andsize in/dists/4321/component/source/Sources)
xz in/dists/4321/component/source/Sources
sourcesxzsha=$(sha2andsize in/dists/4321/component/source/Sources.xz)
cat > in/dists/4321/Release <<EOF
SHA256:
$sourcessha component/source/Sources
$sourcesxzsha component/source/Sources.xz
$packagessha component/binary-something/Packages
$packagesxzsha component/binary-something/Packages.xz
EOF
echo "test warning" > conf/filtersrclist
echo "name warning" > conf/filterlist
dodo mkdir lists
testrun - -b . update 1234 3<<EOF
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/component/source/Sources.xz'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/component/source/Sources.xz'
-v2*=Uncompress '$WORKDIR/in/dists/4321/component/source/Sources.xz' into './lists/test_4321_component_Sources' using '/usr/bin/unxz'...
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/component/binary-something/Packages.xz'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/component/binary-something/Packages.xz'
-v2*=Uncompress '$WORKDIR/in/dists/4321/component/binary-something/Packages.xz' into './lists/test_4321_component_something_Packages' using '/usr/bin/unxz'...
*=Loudly rejecting 'name' '17-3' to enter '1234|component|something'!
*=Loudly rejecting 'test' '1-2' to enter '1234|component|source'!
stdout
-v0*=Calculating packages to get...
-v3*= processing updates for '1234|component|source'
-v5*= reading './lists/test_4321_component_Sources'
-v3*= processing updates for '1234|component|something'
-v5*= reading './lists/test_4321_component_something_Packages'
EOF
dodo echo check if the fallback to filtersrclist works:
sed -e 's/^FilterList/#&/' -i conf/updates
rm conf/filterlist
testrun - -b . --noskipold update 1234 3<<EOF
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
*=Loudly rejecting 'name' '17-3' to enter '1234|component|something'!
*=Loudly rejecting 'test' '1-2' to enter '1234|component|source'!
stdout
-v0*=Calculating packages to get...
-v3*= processing updates for '1234|component|source'
-v5*= reading './lists/test_4321_component_Sources'
-v3*= processing updates for '1234|component|something'
-v5*= reading './lists/test_4321_component_something_Packages'
EOF
echo "test =1-2" > conf/filtersrclist
testrun - -b . --noskipold update 1234 3<<EOF
stderr
-v6=aptmethod start 'file:$WORKDIR/in/dists/4321/Release'
-v1*=aptmethod got 'file:$WORKDIR/in/dists/4321/Release'
-v2*=Copy file '$WORKDIR/in/dists/4321/Release' to './lists/test_4321_Release'...
-v6=aptmethod start 'file:$WORKDIR/in/../build/${src2dscname}'
-v1*=aptmethod got 'file:$WORKDIR/in/../build/${src2dscname}'
-v2*=Linking file '$WORKDIR/in/../build/${src2dscname}' to './pool/component/t/test/${src2dscname}'...
-v6=aptmethod start 'file:$WORKDIR/in/../build/${src2debname}'
-v1*=aptmethod got 'file:$WORKDIR/in/../build/${src2debname}'
-v2*=Linking file '$WORKDIR/in/../build/${src2debname}' to './pool/component/t/test/${src2debname}'...
-v6=aptmethod start 'file:$WORKDIR/in/../build/${bin2debname}'
-v1*=aptmethod got 'file:$WORKDIR/in/../build/${bin2debname}'
-v2*=Linking file '$WORKDIR/in/../build/${bin2debname}' to './pool/component/t/test/${bin2debname}'...
stdout
$(ofa pool/component/t/test/${src2dscname})
$(ofa pool/component/t/test/${src2debname})
$(ofa pool/component/t/test/${bin2debname})
-v0*=Calculating packages to get...
-v3*= processing updates for '1234|component|source'
-v5*= reading './lists/test_4321_component_Sources'
-v3*= processing updates for '1234|component|something'
-v5*= reading './lists/test_4321_component_something_Packages'
-v0*=Getting packages...
-v1*=Shutting down aptmethods...
-v0*=Installing (and possibly deleting) packages...
$(opu 'test' x x '1234' 'component' 'source' 'dsc')
$(opu 'name' x x '1234' 'component' 'something' 'deb')
-v0*=Exporting indices...
-v6*= looking for changes in '1234|component|something'...
-v6*= replacing './dists/1234/component/binary-something/Packages' (xzed)
-v6*= looking for changes in '1234|component|source'...
-v6*= replacing './dists/1234/component/source/Sources' (xzed)
EOF
rm -r lists build in
echo "test warning" > conf/filtersrclist
echo "name warning" > conf/filterlist
testrun - -b . pull dest 3<<EOF
*=Loudly rejecting 'name' '17-3' to enter 'dest|component|something'!
*=Loudly rejecting 'test' '1-2' to enter 'dest|component|source'!
stdout
-v0*=Calculating packages to pull...
-v3*= pulling into 'dest|component|source'
-v5*= looking what to get from '1234|component|source'
-v3*= pulling into 'dest|component|something'
-v5*= looking what to get from '1234|component|something'
-v0*=Installing (and possibly deleting) packages...
EOF
sed -e 's/^FilterList/#&/' -i conf/pulls
rm conf/filterlist
testrun - -b . pull dest 3<<EOF
*=Loudly rejecting 'name' '17-3' to enter 'dest|component|something'!
*=Loudly rejecting 'test' '1-2' to enter 'dest|component|source'!
stdout
-v0*=Calculating packages to pull...
-v3*= pulling into 'dest|component|source'
-v5*= looking what to get from '1234|component|source'
-v3*= pulling into 'dest|component|something'
-v5*= looking what to get from '1234|component|something'
-v0*=Installing (and possibly deleting) packages...
EOF
echo "test =1-2" > conf/filtersrclist
testrun - -b . pull dest 3<<EOF
stdout
-v0*=Calculating packages to pull...
-v3*= pulling into 'dest|component|source'
-v5*= looking what to get from '1234|component|source'
-v3*= pulling into 'dest|component|something'
-v5*= looking what to get from '1234|component|something'
-v0*=Installing (and possibly deleting) packages...
$(opu 'test' x x 'dest' 'component' 'source' 'dsc')
$(opu 'name' x x 'dest' 'component' 'something' 'deb')
-v0*=Exporting indices...
-v6*= looking for changes in 'dest|component|something'...
-v6*= replacing './dists/dest/component/binary-something/Packages' (xzed)
-v6*= looking for changes in 'dest|component|source'...
-v6*= replacing './dists/dest/component/source/Sources' (xzed)
-v0*=Deleting files no longer referenced...
$(ofd pool/component/t/test/${srcdscname})
$(ofd pool/component/t/test/${srcdebname})
$(ofd pool/component/t/test/${bindebname})
EOF
rm -r -f db conf dists pool
testsuccess
|