diff options
Diffstat (limited to 'lib/Debian/Debhelper')
-rw-r--r-- | lib/Debian/Debhelper/Dh_Lib.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Debian/Debhelper/Dh_Lib.pm b/lib/Debian/Debhelper/Dh_Lib.pm index 7ba987d3..781cc609 100644 --- a/lib/Debian/Debhelper/Dh_Lib.pm +++ b/lib/Debian/Debhelper/Dh_Lib.pm @@ -1465,7 +1465,8 @@ sub getpackages { my ($dh_compat_bd, $final_level); for my $field (sort(keys(%bd_fields))) { my $value = join(' ', @{$bd_fields{$field}}); - $value =~ s/\s*,\s*$//; + $value =~ s/^\s*//; + $value =~ s/\s*(?:,\s*)?$//; for my $dep (split(/\s*,\s*/, $value)) { if ($dep =~ m/^debhelper-compat\s*[(]\s*=\s*(${PKGVERSION_REGEX})\s*[)]$/) { my $version = $1; |