4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
14 testsuccess aptget update
16 testnopackage newstuff
17 PKGFILE
="${TESTDIR}/$(echo "$(basename $0)" | sed 's#^test-#Packages-#')"
18 testequal "$(cat ${PKGFILE})
19 " aptcache show apt oldstuff
21 cp ${PKGFILE}-new aptarchive/Packages
22 compressfile 'aptarchive/Packages'
23 rm -rf aptarchive/Packages.diff
24 mkdir -p aptarchive/Packages.diff
25 PATCHFILE="aptarchive
/Packages.diff
/$(date +%Y-%m-%d-%H%M.%S)"
26 diff -e ${PKGFILE} ${PKGFILE}-new > ${PATCHFILE} || true
27 cat $PATCHFILE | gzip > ${PATCHFILE}.gz
28 PATCHINDEX="aptarchive
/Packages.diff
/Index
"
29 echo "SHA1
-Current: $(sha1sum ${PKGFILE}-new | cut -d' ' -f 1) $(stat -c%s ${PKGFILE}-new)
31 9f4148e06d7faa37062994ff10d0c842d7017513
33053002 2010-08-18-2013.28
32 $(sha1sum $PKGFILE | cut -d' ' -f 1) $(stat -c%s $PKGFILE) $(basename $PATCHFILE)
34 7651fc0ac57cd83d41c63195a9342e2db5650257
19722 2010-08-18-0814.28
35 $(sha1sum $PATCHFILE | cut -d' ' -f 1) $(stat -c%s $PATCHFILE) $(basename $PATCHFILE)" > $PATCHINDEX
36 generatereleasefiles '+1hour'
38 find aptarchive -name 'Packages*' -type f -delete
39 testsuccess aptget update
41 testnopackage oldstuff
42 testequal "$(cat ${PKGFILE}-new)
43 " aptcache show apt newstuff