]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Dh_Lib.pm
r508: * Typo, Closes: #132454
[debhelper.git] / Debian / Debhelper / Dh_Lib.pm
index a21db5da15ea162bb8d9f3f54c0863d7e09eb462..ea4046a3ba12334f7467bfd156fcaf9c72540ec1 100644 (file)
@@ -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});
        }