Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
Add patch fixing zstdgrep exit code when operating on files, Closes #918390
· d64e4eb7
Alexandre Mestiashvili
authored
Jan 05, 2019
d64e4eb7
Update changelog
· 1b2c3212
Alexandre Mestiashvili
authored
Jan 05, 2019
Gbp-Dch: Ignore
1b2c3212
Add attribution for the patch
· 33df2152
Alexandre Mestiashvili
authored
Jan 08, 2019
33df2152
Hide whitespace changes
Inline
Side-by-side
debian/changelog
View file @
33df2152
libzstd (1.3.8+dfsg-3) unstable; urgency=medium
* Add patch fixing zstdgrep exit code when operating on files
Closes: #918390, thanks to Jörg-Volker Peetz <jvpeetz@web.de>
-- Alexandre Mestiashvili <mestia@debian.org> Sat, 05 Jan 2019 23:42:20 +0100
libzstd (1.3.8+dfsg-2) unstable; urgency=medium
* Add patch skipping tests failing on GNU/Hurd when writing to special files
...
...
debian/patches/0016-fix-zstdgrep-exit-code.patch
0 → 100644
View file @
33df2152
Description: Fix zstdgrep exit code when operating on files
From: Jörg-Volker Peetz <jvpeetz@web.de>
Forwarded: https://github.com/facebook/zstd/issues/1428
--- libzstd.orig/programs/zstdgrep
+++ libzstd/programs/zstdgrep
@@ -113,16 +113,11 @@
if [ "${silent}" -lt 1 ] && [ "$#" -gt 1 ]; then
grep_args="-H ${grep_args}"
fi
- CUR_EXIT_CODE=0
- EXIT_CODE=1
set -f
while [ "$#" -gt 0 ]; do
# shellcheck disable=SC2086
"${zcat}" -fq -- "$1" | "${grep}" --label="${1}" ${grep_args} -- "${pattern}" -
- CUR_EXIT_CODE=$?
- if [ "${CUR_EXIT_CODE}" -eq 0 ] && [ "${EXIT_CODE}" -ne 1 ]; then
- EXIT_CODE=0
- fi
+ [ "$?" -ne 0 ] && EXIT_CODE=1
shift
done
set +f
debian/patches/series
View file @
33df2152
...
...
@@ -3,3 +3,4 @@
0013-skip-memory-greedy-tests.patch
0014-Reproducible-build.patch
0015-Skip-dev-random-tests-on-hurd.patch
0016-fix-zstdgrep-exit-code.patch