]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-602412-dequote-redirect
4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'amd64'
9 buildsimplenativepackage
'unrelated' 'all' '0.5~squeeze1' 'unstable'
12 changetowebserver
-o aptwebserver
::redirect
::replace
::/pool
/=/newpool
/ \
13 -o aptwebserver
::redirect
::replace
::/dists
/=/newdists
/
15 mv aptarchive
/pool aptarchive
/newpool
16 mv aptarchive
/dists aptarchive
/newdists
18 msgtest
'Test redirection works in' 'apt-get update'
19 aptget update
-qq && msgpass
|| msgfail
21 # check that I-M-S header is kept in redirections
22 testequal
'Hit http://localhost:8080 unstable InRelease
23 Hit http://localhost:8080 unstable/main Sources
24 Hit http://localhost:8080 unstable/main amd64 Packages
25 Hit http://localhost:8080 unstable/main Translation-en
26 Reading package lists...' aptget update
#-o debug::pkgacquire=1 -o debug::pkgacquire::worker=1
28 msgtest
'Test redirection works in' 'package download'
29 aptget
install unrelated
--download-only -qq && msgpass
|| msgfail