X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/30c8107e9c56d7d78dcf9136f94aeed9d631dfb3..ece81b7517b1af6f86aff733498f6c11d5aa814f:/test/integration/test-apt-get-download?ds=sidebyside

diff --git a/test/integration/test-apt-get-download b/test/integration/test-apt-get-download
index 5c42c7e3c..fc0e6cfa3 100755
--- a/test/integration/test-apt-get-download
+++ b/test/integration/test-apt-get-download
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 
 setupenvironment
 configarchitecture "i386"
@@ -30,14 +30,8 @@ find aptarchive/dists -name '*Release*' -type f | while read file; do
 	testaccessrights "$file" '640'
 done
 if [ "$(id -u)" = '0' ]; then
-	# permission errors an everything
-	testfailure aptget update
-
-	find aptarchive/dists -name '*Packages*' -type f | while read file; do
-		chmod 777 "$file"
-	done
-	# permission errors on Release
-	testwarning aptget update
+	# Release file can't be accessed by _apt
+	testsuccesswithnotice aptget update
 fi
 
 #everything (too) permissive