4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 buildsimplenativepackage
'apt' 'all' '1.0' 'stable'
11 buildsimplenativepackage
'apt' 'all' '2.0' 'unstable'
16 msgtest
'Test download of package file' $1
20 aptget download
${2}/${3}
22 test -f $1 && msgpass
|| msgfail
25 testdownload apt_1.0_all.deb apt stable
26 testdownload apt_2.0_all.deb apt
28 DEBFILE
="$(readlink -f aptarchive)/pool/apt_2.0_all.deb"
29 testequal
"'file://${DEBFILE}' apt_2.0_all.deb $(stat -c%s $DEBFILE) sha256:$(sha256sum $DEBFILE | cut -d' ' -f 1)" aptget download apt
--print-uris