]> git.saurik.com Git - apt.git/commitdiff
do not touch Packages and Sources in the framework if the files do
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 30 Nov 2010 18:29:22 +0000 (19:29 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 30 Nov 2010 18:29:22 +0000 (19:29 +0100)
not exist to not generate sources.list entries later for them

test/integration/framework
test/integration/test-bug-595691-empty-and-broken-archive-files

index 7af59deb01ad17599859faaaef1b3df0def0ddee..aa8cdacc64f87e6a2132e51ea0ee746090f11356 100644 (file)
@@ -116,14 +116,10 @@ setupenvironment() {
        local PACKAGESFILE=$(echo "$(basename $0)" | sed -e 's/^test-/Packages-/' -e 's/^skip-/Packages-/')
        if [ -f "${TESTDIR}/${PACKAGESFILE}" ]; then
                cp "${TESTDIR}/${PACKAGESFILE}" aptarchive/Packages
-       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
index 11a5025d2c94c28013ce3c8095ebd9d4fc5ce763..66792899a834e4c1b3ee5aa5ade5efbfd985dd4f 100755 (executable)
@@ -7,6 +7,7 @@ setupenvironment
 configarchitecture "i386"
 
 buildaptarchive
+touch aptarchive/Packages
 setupflataptarchive
 
 testaptgetupdate() {