Skip to content

Commit b231458

Browse files
dkogangeofft
authored andcommitted
<package>.displace-extension can now contain ".extension" or "extension"
Previously the former was assumed, and the latter would silently fail
1 parent 9baafa3 commit b231458

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dh_configpackage

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ sub displace_extension {
223223
if ($file) {
224224
open(my $fh, $file);
225225
my $ret = <$fh>;
226-
chomp $ret;
227226
close $fh;
227+
228+
chomp $ret;
229+
$ret = ".$ret" unless $ret =~ /^\./; # must start with .
228230
return $ret;
229231
}
230232
$package =~ s/-.*//;

0 commit comments

Comments
 (0)