X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/4d0818cc39f7c0d44ecdfcdf9701058f81caa492..0d303f1764645284b33924c9be8bf29f0a32ca5c:/test/integration/test-apt-get-download diff --git a/test/integration/test-apt-get-download b/test/integration/test-apt-get-download index 0514542b3..48086d808 100755 --- a/test/integration/test-apt-get-download +++ b/test/integration/test-apt-get-download @@ -11,22 +11,26 @@ buildsimplenativepackage 'apt' 'all' '1.0' 'stable' buildsimplenativepackage 'apt' 'all' '2.0' 'unstable' insertinstalledpackage 'vrms' 'all' '1.0' +OLD_UMASK="$(umask)" umask 0027 +setupaptarchive --no-update +umask "$OLD_UMASK" -setupaptarchive - +# directories should be readable by everyone +find aptarchive/dists -type d | while read dir; do + chmod o+rx "$dir" +done # apt-ftparchive knows how to chmod files find aptarchive/dists -name '*Packages*' -type f | while read file; do testaccessrights "$file" '644' + chmod 640 "$file" done # created by the framework without special care find aptarchive/dists -name '*Release*' -type f | while read file; do testaccessrights "$file" '640' done -# all copied files are properly chmodded -find rootdir/var/lib/apt/lists -type f | while read file; do - testaccessrights "$file" '644' -done + +testsuccess aptget update testdownload() { local APT="$2"