From b4a8c4d3d2f5c728cdeb665bbfbe4d6a05eb265f Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Tue, 22 Nov 2016 19:54:25 -0800 Subject: [PATCH] Set install root to /usr, and remove .crates.toml --- cargo.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cargo.pm b/cargo.pm index a18aac7..76a74d3 100644 --- a/cargo.pm +++ b/cargo.pm @@ -95,7 +95,9 @@ sub install { doit("cp", $this->get_sourcepath("debian/cargo-checksum.json"), "$target/$crate_name/.cargo-checksum.json"); } if ($this->{binpkg}) { - doit("cargo", "install", "--root", $this->get_sourcepath("debian/" . $this->{binpkg})); + my $target = $this->get_sourcepath("debian/" . $this->{binpkg} . "/usr"); + doit("cargo", "install", "--root", $target); + doit("rm", "$target/.crates.toml"); } } -- 2.39.5