]> git.saurik.com Git - apt.git/commitdiff
test/integration/test-apt-update-filesize-mismatch: use "basename file suffix" instea...
authorMichael Vogt <mvo@debian.org>
Tue, 4 Nov 2014 21:01:59 +0000 (22:01 +0100)
committerMichael Vogt <mvo@debian.org>
Tue, 4 Nov 2014 21:01:59 +0000 (22:01 +0100)
test/integration/test-apt-update-filesize-mismatch

index 8c73c059eaa932825d5d545a6ac09c67d0f109b4..b484c5161645d36a03a456b7f74a3a426101ee62 100755 (executable)
@@ -28,7 +28,7 @@ for get in $(sed -n 's#^GET /\([^ ]\+\.gz\) HTTP.\+$#\1#p' aptarchive/webserver.
        for ext in '' '.gz'; do
                COMPRESSFILE="$get"
                get="${get}${ext}"
        for ext in '' '.gz'; do
                COMPRESSFILE="$get"
                get="${get}${ext}"
-               FILE="$(basename -s '.gz' "$get")"
+               FILE="$(basename "$get" '.gz')"
                msgmsg 'Test filesize mismatch with file' "$FILE"
                rm -rf rootdir/var/lib/apt/lists
 
                msgmsg 'Test filesize mismatch with file' "$FILE"
                rm -rf rootdir/var/lib/apt/lists