4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 buildsimplenativepackage
'apt' 'all' '1.0' 'stable'
11 buildsimplenativepackage
'apt' 'all' '2.0' 'unstable'
12 insertinstalledpackage
'vrms' 'all' '1.0'
21 msgtest
"Test download of package file $1 with" "$APT"
22 testsuccess
--nomsg aptget download
${APT}
23 testsuccess
test -f $1
28 testdownload apt_1.0_all.deb apt stable
29 testdownload apt_2.0_all.deb apt
31 DEBFILE
="$(readlink -f aptarchive)/pool/apt_2.0_all.deb"
32 testequal
"'file://${DEBFILE}' apt_2.0_all.deb $(stat -c%s $DEBFILE) SHA512:$(sha512sum $DEBFILE | cut -d' ' -f 1)" aptget download apt
--print-uris
35 testequal
"E: Can't find a source to download version '1.0' of 'vrms:i386'" aptget download vrms
38 testsuccess aptget download apt
39 testsuccess aptget download apt
40 testsuccess
test -s apt_2.0_all.deb
42 rm -f apt_1.0_all.deb apt_2.0_all.deb
45 testsuccess aptget download apt apt apt
/unstable apt
=2.0
46 testsuccess
test -s apt_2.0_all.deb
48 # deb:738103 - apt-get download foo foo fails
50 aptget download apt apt
51 testsuccess
test -s apt_2.0_all.deb