summaryrefslogtreecommitdiffstats
path: root/debian/prune-unused-deps
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:51 +0000
commitf6dd242b638083eca54859d79656bb925b3cd966 (patch)
treec744d9f40091f32215162d74dc13ac45c30393ae /debian/prune-unused-deps
parentMerging upstream version 1.71.1+dfsg1. (diff)
downloadrustc-f6dd242b638083eca54859d79656bb925b3cd966.tar.xz
rustc-f6dd242b638083eca54859d79656bb925b3cd966.zip
Merging debian version 1.71.1+dfsg1-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/prune-unused-deps')
-rwxr-xr-xdebian/prune-unused-deps5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/prune-unused-deps b/debian/prune-unused-deps
index 5807b4a4c..ae733854f 100755
--- a/debian/prune-unused-deps
+++ b/debian/prune-unused-deps
@@ -17,6 +17,7 @@ done
test -f Cargo.lock.orig || cp Cargo.lock Cargo.lock.orig
test -f src/bootstrap/Cargo.lock.orig || cp src/bootstrap/Cargo.lock src/bootstrap/Cargo.lock.orig
test -f src/tools/rust-analyzer/Cargo.lock.orig || cp src/tools/rust-analyzer/Cargo.lock src/tools/rust-analyzer/Cargo.lock.orig
+test -f src/tools/cargo/Cargo.lock.orig || cp src/tools/cargo/Cargo.lock src/tools/cargo/Cargo.lock.orig
rm -f Cargo.lock src/bootstrap/Cargo.lock src/tools/rust-analyzer/Cargo.lock src/tools/cargo/Cargo.lock
find vendor -name .cargo-checksum.json -execdir "$scriptdir/debian/prune-checksums" "{}" +
@@ -30,10 +31,14 @@ cargo update --offline
# re-generate src/tools/rust-analyzer/Cargo.lock after patching
( cd src/tools/rust-analyzer && cargo update --offline )
+# re-generate src/tools/cargo/Cargo.lock after patching
+( cd src/tools/cargo && cargo update --offline )
+
needed_crates() {
cat Cargo.lock \
src/bootstrap/Cargo.lock \
src/tools/rust-analyzer/Cargo.lock \
+ src/tools/cargo/Cargo.lock \
| sed -z -e 's/\nname = /name = /g' -e 's/\nversion = /version = /g' \
| sed -ne 's/\[\[package\]\]name = "\(.*\)"version = "\(.*\)"/\1 \2/gp'
}