summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
diff options
context:
space:
mode:
authorjoey <joey>2002-02-06 22:21:41 +0000
committerjoey <joey>2002-02-06 22:21:41 +0000
commit5ed0df5cddd3bb2a52ca52d508409e09669af03e (patch)
tree3c6b8e7e91c31be7dafdfe5134285bf1f8006926 /Debian/Debhelper/Dh_Lib.pm
parent7b3307a2faf0ab9dec667408a2d00d14fcd860c8 (diff)
r508: * Typo, Closes: #132454
* Ignore leading/trailing whitespace in DH_OPTIONS, Closes: #132645
Diffstat (limited to 'Debian/Debhelper/Dh_Lib.pm')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index a21db5da..ea4046a3 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -19,6 +19,9 @@ my $max_compat=4;
sub init {
# If DH_OPTIONS is set, prepend it @ARGV.
if (defined($ENV{DH_OPTIONS})) {
+ # Ignore leading/trailing whitespace.
+ $ENV{DH_OPTIONS}=~s/^\s+//;
+ $ENV{DH_OPTIONS}=~s/\s+$//;
unshift @ARGV,split(/\s+/,$ENV{DH_OPTIONS});
}