diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-11-04 13:19:14 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-05 12:21:33 +0100 |
commit | 30c8107e9c56d7d78dcf9136f94aeed9d631dfb3 (patch) | |
tree | c8d9a601ab50de8d8cd059c2f84e94fedf4f8213 /test/integration/test-apt-update-file | |
parent | 23d35ec15a849ee755f51a99939b0131e8faefa5 (diff) |
drop privileges in copy:// method as we do for file://
Continueing on the track of dropping privileges in all methods, lets
drop it in copy, too, as the reasoning for it is very similar to file
and the interaction between the too quiet interesting as copy kinda
surfed as a fallback for file not being able to read the file. Both now
show a better error message as well as it was previously claiming to
have a hashsum mismatch, given that it couldn't read the file.
Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-apt-update-file')
-rwxr-xr-x | test/integration/test-apt-update-file | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/integration/test-apt-update-file b/test/integration/test-apt-update-file index c6e07f8b6..04e26a8f4 100755 --- a/test/integration/test-apt-update-file +++ b/test/integration/test-apt-update-file @@ -19,9 +19,12 @@ insertsource 'unstable' 'foo' 'all' '1' setupaptarchive --no-update # ensure the archive is not writable -addtrap 'prefix' 'chmod 750 aptarchive/dists/unstable/main/binary-all;' -chmod 550 aptarchive/dists/unstable/main/binary-all - +addtrap 'prefix' 'chmod 755 aptarchive/dists/unstable/main/binary-all;' +if [ "$(id -u)" = '0' ]; then + chmod 550 aptarchive/dists/unstable/main/binary-all + testfailure aptget update +fi +chmod 555 aptarchive/dists/unstable/main/binary-all testsuccess aptget update # the release files aren't an IMS-hit, but the indexes are |