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;
$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;
+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.