aboutsummaryrefslogtreecommitdiff
path: root/src/scripts/xzdiff.in
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-11 12:23:58 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-11 12:23:58 +0200
commitd76c752a6d77052e5ad57ade555082585f7ac5d8 (patch)
treedbfee7586de09901d7bb779fe0fc47e58b049cfa /src/scripts/xzdiff.in
parentTranslations: Rename poa4/fr_FR.po to po4a/fr.po. (diff)
downloadxz-d76c752a6d77052e5ad57ade555082585f7ac5d8.tar.xz
Scripts: Ignore warnings from xz.
In practice this means making the scripts work when the input files have an unsupported check type which isn't a problem in practice unless support for some check types has been disabled at build time.
Diffstat (limited to 'src/scripts/xzdiff.in')
-rw-r--r--src/scripts/xzdiff.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scripts/xzdiff.in b/src/scripts/xzdiff.in
index 234d6c70..389921d8 100644
--- a/src/scripts/xzdiff.in
+++ b/src/scripts/xzdiff.in
@@ -65,8 +65,9 @@ for file; do
test "X$file" = X- || <"$file" || exit 2
done
-xz1=$xz
-xz2=$xz
+# xz needs -qQ to ignore warnings like unsupported check type.
+xz1="$xz -qQ"
+xz2="$xz -qQ"
xz_status=0
exec 3>&1