diff --git a/cargo.pm b/cargo.pm index 641cb6a..740559a 100644 --- 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; diff --git a/debian/changelog b/debian/changelog index 5823eeb..f956ef9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +dh-cargo (28) UNRELEASED; urgency=medium + + * Support packages with ruzt-* prefix to help with debcargo testing. + + -- Ximin Luo Sun, 07 Nov 2021 12:56:11 +0000 + dh-cargo (27) unstable; urgency=medium * Minor tweak to help with debcargo testing; no behavioural changes.