From df6900ec4a4422ced11a26064d37aacaea7ec0bc Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 22 May 2022 07:52:06 +0200 Subject: [PATCH] hooks/eatmydata/extract.sh: fix regex to also work on s390x --- hooks/eatmydata/extract.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/eatmydata/extract.sh b/hooks/eatmydata/extract.sh index 6dfaf6d..32007f7 100755 --- a/hooks/eatmydata/extract.sh +++ b/hooks/eatmydata/extract.sh @@ -25,7 +25,7 @@ END # nothing will be printed for them tmpdir=$(mktemp --directory --tmpdir="$rootdir/tmp") env --chdir="$tmpdir" APT_CONFIG="$tmpfile" apt-get download --print-uris eatmydata libeatmydata1 \ - | sed -ne "s/^'\([^']\+\)'\s\+\([^\s]\+\)\s\+\([0-9]\+\)\s\+\(SHA256:[a-f0-9]\+\)$/\1 \2 \3 \4/p" \ + | sed -ne "s/^'\([^']\+\)'\s\+\(\S\+\)\s\+\([0-9]\+\)\s\+\(SHA256:[a-f0-9]\+\)$/\1 \2 \3 \4/p" \ | while read uri fname size hash; do echo "processing $fname" >&2 if [ -e "$tmpdir/$fname" ]; then