From: Andres Mejia Date: Tue, 30 Nov 2010 18:25:39 +0000 (+0100) Subject: Add support for providing and autocopying Sources files along the way X-Git-Tag: 0.8.11~5^2^2^2~47 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/4a4ea26c2d0f89c13e0ccf6fb2d96ad1caa6427d?ds=sidebyside Add support for providing and autocopying Sources files along the way of status and Packages files with a testcase --- diff --git a/test/integration/framework b/test/integration/framework index 8abefc814..7af59deb0 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -119,6 +119,12 @@ setupenvironment() { else touch aptarchive/Packages fi + local SOURCESSFILE=$(echo "$(basename $0)" | sed -e 's/^test-/Sources-/' -e 's/^skip-/Sources-/') + if [ -f "${TESTDIR}/${SOURCESSFILE}" ]; then + cp "${TESTDIR}/${SOURCESSFILE}" aptarchive/Sources + else + touch aptarchive/Sources + fi cp $(find $TESTDIR -name '*.pub' -o -name '*.sec') keys/ ln -s ${TMPWORKINGDIRECTORY}/keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg echo "Dir \"${TMPWORKINGDIRECTORY}/rootdir\";" > aptconfig.conf