wine/wine-staging-4.4-mock-urpm-broken-pipe.patch
survolog (Andrey Grigorev) a94219eedb Update to 4.4
2019-03-25 01:23:35 +03:00

41 lines
1.3 KiB
Diff

diff -ur wine-staging-4.4/patches/gitapply.sh wine-staging-4.4_patched/patches/gitapply.sh
--- wine-staging-4.4/patches/gitapply.sh 2019-03-17 09:12:16.000000000 +0300
+++ wine-staging-4.4_patched/patches/gitapply.sh 2019-03-24 18:21:37.417987367 +0300
@@ -309,6 +309,7 @@
patch_binary_size=""
tmpoffset=$((hdroffset - 1))
+ sed -n "$offset,$tmpoffset p" "$tmpfile" > patch_export.txt
while IFS= read -r line; do
if [ "$line" == "GIT binary patch" ]; then
patch_is_binary=1
@@ -332,7 +333,8 @@
patch_binary_size="${BASH_REMATCH[2]}"
fi
- done < <(sed -n "$offset,$tmpoffset p" "$tmpfile")
+ done < patch_export.txt
+ rm -f patch_export.txt
# Remove first path components, which are always a/ and b/ for git patches
if [[ "$patch_oldname" =~ ^a/(.*)$ ]]; then
@@ -425,7 +427,8 @@
patch_binary_complete=0
patch_binary_destsize=0
-
+
+ hexdump -v -e '32/1 "%02X" "\n"' "$delta_tmpfile" | gawk "$awk_decode_binarypatch" > patch_export.txt
while read cmd arg1 arg2; do
if [ "$cmd" == "S" ]; then
[ "$arg1" -eq "$(filesize "$patch_oldname")" ] || break
@@ -441,7 +444,8 @@
patch_binary_complete=1
else break; fi
- done < <(hexdump -v -e '32/1 "%02X" "\n"' "$delta_tmpfile" | gawk "$awk_decode_binarypatch")
+ done < patch_export.txt
+ rm -f patch_export.txt
rm "$delta_tmpfile"