The following commit has been merged in the master branch:
commit 162b4055bd77ff455b0013be20b95d3c31d44051
Author: Guillem Jover <guil...@debian.org>
Date:   Tue Nov 17 06:54:26 2009 +0100

    dpkg-source: Check if the opmode option is defined before use
    
    This was producing an unitialized value usage perl warning when using
    --help or --version.

diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl
index de4e3b5..d8ee18e 100755
--- a/scripts/dpkg-source.pl
+++ b/scripts/dpkg-source.pl
@@ -84,7 +84,8 @@ while (@ARGV && $ARGV[0] =~ m/^-/) {
 }
 
 my $dir;
-if ($options{'opmode'} =~ /^(-b|--print-format)$/) {
+if (defined($options{'opmode'}) &&
+    $options{'opmode'} =~ /^(-b|--print-format)$/) {
     if (not scalar(@ARGV)) {
        usageerr(_g("%s needs a directory"), $options{'opmode'});
     }

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to