From 161d7f1879b6eb3a842d4bf936000a4e4367f03c Mon Sep 17 00:00:00 2001 From: Fabian Gruenbichler Date: Thu, 28 Dec 2023 14:12:35 +0100 Subject: [PATCH] remove handling of cargo Cargo.lock it's part of the main workspace, so has no separate lock file.. Signed-off-by: Fabian Gruenbichler --- debian/prune-unused-deps | 5 ----- 1 file changed, 5 deletions(-) diff --git a/debian/prune-unused-deps b/debian/prune-unused-deps index ae733854f6..5807b4a4c4 100755 --- a/debian/prune-unused-deps +++ b/debian/prune-unused-deps @@ -17,7 +17,6 @@ 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" "{}" + @@ -31,14 +30,10 @@ 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' } -- 2.39.5