Package: devscripts
Version: 2.10.3
Severity: minor
Tags: patch

While running dch I noticed the following warnings.

Use of uninitialized value in concatenation (.) or string at /usr/bin/dch line 
191.
Use of uninitialized value in string ne at /usr/bin/dch line 213.

The patch below should resolve these minor problems.

--- scripts/debchange.pl        2007-04-16 21:32:11.000000000 +0900
+++ scripts/debchange.pl        2007-04-20 13:24:32.000000000 +0900
@@ -188,7 +188,8 @@
     my $shell_cmd;
     # Set defaults
     foreach my $var (keys %config_vars) {
-       $shell_cmd .= qq[$var="$config_vars{$var}";\n];
+       my $value = defined $config_vars{$var} ? $config_vars{$var} : "";
+       $shell_cmd .= qq[$var="$value";\n];
     }
     $shell_cmd .= 'for file in ' . join(" ",@config_files) . "; do\n";
     $shell_cmd .= '[ -f $file ] && . $file; done;' . "\n";
@@ -210,7 +211,8 @@
        or $config_vars{'DEBCHANGE_MULTIMAINT'}='yes';
 
     foreach my $var (sort keys %config_vars) {
-       if ($config_vars{$var} ne $config_default{$var}) {
+       if (not defined $config_default{$var} or
+           $config_vars{$var} ne $config_default{$var}) {
            $modified_conf_msg .= "  $var=$config_vars{$var}\n";
        }
     }

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (190, 'unstable'), (180, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_AU.utf8)
Shell: /bin/sh linked to /bin/bash

Versions of packages devscripts depends on:
ii  debianutils                   2.18       Miscellaneous utilities specific t
ii  dpkg-dev                      1.13.25    package building tools for Debian
ii  libc6                         2.5-2      GNU C Library: Shared libraries
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 
ii  sed                           4.1.5-1    The GNU sed stream editor

Versions of packages devscripts recommends:
ii  fakeroot                      1.7        Gives a fake root environment

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to