my $this=shift;
doit("cp", $this->get_sourcepath("debian/cargo-checksum.json"),
$this->get_sourcepath(".cargo-checksum.json"));
- if (-e "/usr/share/cargo/registry") {
- doit("ln", "-sfT", "/usr/share/cargo/registry", "debian/cargo_registry");
- } else {
- doit("mkdir", "-p", "debian/cargo_registry"); # empty registry
- }
- doit("/usr/share/cargo/bin/cargo", "prepare-debian", "debian/cargo_registry");
+ doit("/usr/share/cargo/bin/cargo", "prepare-debian", "debian/cargo_registry", "--link-from-system");
}
sub test {
+dh-cargo (17) UNRELEASED; urgency=medium
+
+ * Use --link-from-system from the newer debian-cargo-wrapper.
+
+ -- Ximin Luo <infinity0@debian.org> Wed, 23 Jan 2019 20:27:31 -0800
+
dh-cargo (16) unstable; urgency=medium
* Make detection of rust_libs in dh-cargo-built-using work again.
Architecture: all
Multi-Arch: foreign
Depends: debhelper (>= 10), ${perl:Depends}, ${misc:Depends},
- cargo (>= 0.31.0-3), python3
+ cargo (>= 0.33.0-1), python3
Description: debhelper buildsystem for Rust crates using Cargo
dh-cargo provides a debhelper buildsystem to build Rust crates using Cargo.
.