[devscripts] 02/04: chdist: Silence uninitialized value warnings

James McCoy jamessan at debian.org
Sat Oct 1 02:18:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch master
in repository devscripts.

commit c3fb433b25917d66ff4a084737dda76f4489cb09
Author: James McCoy <jamessan at debian.org>
Date:   Thu Sep 29 20:31:07 2016 -0400

    chdist: Silence uninitialized value warnings
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog  | 3 +++
 scripts/chdist.pl | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e65cd8c..8029e12 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,9 @@ devscripts (2.16.8) UNRELEASED; urgency=medium
     #836725)
   * Change Getopt::Long configuration to disable gnu_compat so an '=' isn't
     required for optional arguments (e.g. "dch --news=").
+  * chdist:
+    + Silence warnings about uninitialized values.  Thanks to Christoph Biedl
+      for the patch.  (Closes: #838185)
 
  -- Paul Wise <pabs at debian.org>  Sat, 27 Aug 2016 13:58:14 +0800
 
diff --git a/scripts/chdist.pl b/scripts/chdist.pl
index 0dcb643..3745256 100755
--- a/scripts/chdist.pl
+++ b/scripts/chdist.pl
@@ -500,7 +500,7 @@ sub dist_compare(\@$$) {
      # Escaped versions
      my @esc_vers = @versions;
      foreach my $vers (@esc_vers) {
-        $vers =~ s|\+|\\\+|;
+        $vers =~ s|\+|\\\+| if defined $vers;
      }
 
      # Do compare
@@ -585,7 +585,7 @@ sub compare_src_bin {
     foreach my $package (@all_packages) {
 	my $line = "$package ";
 	my $status = "";
-	my $details;
+	my $details = '';
 
 	foreach my $type (@comp_types) {
 	    if ( $packages{$type}{$package} ) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list