Przeglądaj źródła

do not touch Packages and Sources in the framework if the files do
not exist to not generate sources.list entries later for them

David Kalnischkies 15 lat temu
rodzic
commit
db4b5f77e1

+ 0 - 4
test/integration/framework

@@ -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

+ 1 - 0
test/integration/test-bug-595691-empty-and-broken-archive-files

@@ -7,6 +7,7 @@ setupenvironment
 configarchitecture "i386"
 
 buildaptarchive
+touch aptarchive/Packages
 setupflataptarchive
 
 testaptgetupdate() {