aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextra/rust/build3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/rust/build b/extra/rust/build
index 674d1700..ea28f9ba 100755
--- a/extra/rust/build
+++ b/extra/rust/build
@@ -17,7 +17,8 @@ patch -p1 < musl-libressl.patch
# 'rust' checksums files in 'vendor/', but we patch a few files.
for vendor in libc openssl-sys; do
- sed -i 's/\("files":{\)[^}]*/\1/' "vendor/$vendor/.cargo-checksum.json"
+ sed 's/\("files":{\)[^}]*/\1/' "vendor/$vendor/.cargo-checksum.json" > ".json.bak.$vendor"
+ mv ".json.bak.$vendor" "vendor/$vendor/.cargo-checksum.json"
done
cat > config.toml <<EOF