]> git.proxmox.com Git - dh-cargo.git/commitdiff
Support packages with ruzt-* prefix to help with debcargo testing
authorXimin Luo <infinity0@debian.org>
Sun, 7 Nov 2021 12:57:00 +0000 (12:57 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 7 Nov 2021 12:57:00 +0000 (12:57 +0000)
cargo.pm
debian/changelog

index 641cb6ab95dff809dd84283fb9b40cb1d548392d..740559a75cd1303457fd49c77394f0f1dc9b1957 100644 (file)
--- a/cargo.pm
+++ b/cargo.pm
@@ -85,7 +85,7 @@ sub pre_building_step {
     my $crate = $source->{'X-Cargo-Crate'};
     if (!$crate) {
         $crate = $source->{Source};
-        $crate =~ s/^rust-//;
+        $crate =~ s/^ru[sz]t-//;
         $crate =~ s/-[0-9]+(\.[0-9]+)*$//;
     }
     $this->{crate} = $crate;
@@ -98,7 +98,7 @@ sub pre_building_step {
     $this->{binpkg} = 0;
     $this->{featurepkg} = [];
     foreach my $package (@packages) {
-        if ($package->{Package} =~ /^librust-.*-dev$/) {
+        if ($package->{Package} =~ /^libru[sz]t-.*-dev$/) {
             if ($package->{Package} =~ /\+/) {
                 push(@{$this->{featurepkg}}, $package->{Package});
                 next;
index 5823eeb58e73efcf9a9a2c90a0cde5cca7a8a3fd..f956ef92f4c873f51ba8173460157eb76eb02350 100644 (file)
@@ -1,3 +1,9 @@
+dh-cargo (28) UNRELEASED; urgency=medium
+
+  * Support packages with ruzt-* prefix to help with debcargo testing.
+
+ -- Ximin Luo <infinity0@debian.org>  Sun, 07 Nov 2021 12:56:11 +0000
+
 dh-cargo (27) unstable; urgency=medium
 
   * Minor tweak to help with debcargo testing; no behavioural changes.