]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-712116-dpkg-pre-install-pkgs-hook-multiarch
don't ask server if we have entire file in partial/
[apt.git] / test / integration / test-bug-712116-dpkg-pre-install-pkgs-hook-multiarch
index 62355a6b58ca1c6c6f91478838ae6417dcd02ead..a15ac06edcbfa233adeb5b5ce77a03439ef0aece 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 setupenvironment
 configarchitecture 'amd64' 'i386'
 
@@ -48,7 +48,7 @@ DPkg::Tools::options::\"./${hook}-v${1}.sh\"::Version \"$1\";" > rootdir/etc/apt
 observehook() {
        rm -f ${hook}-v2.list ${hook}-v3.list
        msgtest 'Observe hooks while' "$*"
-       testsuccess --nomsg aptget "$@" -y --force-yes
+       testsuccess --nomsg aptget "$@" -y --allow-downgrades
 }
 
 testrun() {