4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 buildsimplenativepackage
'apt' 'all' '1.0' 'stable'
12 setupaptarchive
--no-update
14 testsuccess aptget update
16 echo 'Apt::Changelogs::Server "http://localhost:8080/";' > rootdir
/etc
/apt
/apt.conf.d
/changelog.conf
18 testequal
"'http://localhost:8080//pool/apt_1.0/changelog'" aptget changelog apt
--print-uris
20 testequal
"'http://localhost:8080//pool/apt_1.0/changelog'
21 'http://localhost:8080//pool/apt_1.0/changelog'" aptget changelog apt apt
--print-uris
23 aptget changelog apt
-qq > apt.changelog
24 testfileequal
'apt.changelog' "$(cat aptarchive/pool/apt_1.0/changelog)"
27 testsuccess aptget changelog apt
-d
28 testfileequal
'apt.changelog' "$(cat aptarchive/pool/apt_1.0/changelog)"
29 rm apt.changelog aptarchive
/pool
/apt_1.0
/changelog
31 aptget changelog apt
-qq -o APT
::Changelogs
::Server
='http://not-on-the-main-server:8080/' > apt.changelog
32 testfileequal
'apt.changelog' "$(cat aptarchive/pool/apt_1.0.changelog)"
35 testsuccess aptget changelog apt
-d
36 testfileequal
'apt.changelog' "$(cat aptarchive/pool/apt_1.0.changelog)"
37 rm apt.changelog aptarchive
/pool
/apt_1.0.changelog
39 testequal
'E: changelog download failed' aptget changelog apt
-qq -o APT
::Changelogs
::Server
='http://not-on-the-main-server:8080/'