]> git.proxmox.com Git - dh-cargo.git/commitdiff
Set install root to /usr, and remove .crates.toml
authorJosh Triplett <josh@joshtriplett.org>
Wed, 23 Nov 2016 03:54:25 +0000 (19:54 -0800)
committerJosh Triplett <josh@joshtriplett.org>
Wed, 23 Nov 2016 03:54:25 +0000 (19:54 -0800)
cargo.pm

index a18aac79b99bcac8998a7c1f66fa23d021ba8b18..76a74d3165bbf88901110318a4d8838ca9374fe9 100644 (file)
--- 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");
     }
 }