Author: adsb
Date: 2008-10-29 20:38:17 +0000 (Wed, 29 Oct 2008)
New Revision: 1679

Modified:
   trunk/scripts/debchange.pl
Log:
Check $ENV{CHANGELOG} exists before trying to take its length

Modified: trunk/scripts/debchange.pl
===================================================================
--- trunk/scripts/debchange.pl  2008-10-29 20:17:21 UTC (rev 1678)
+++ trunk/scripts/debchange.pl  2008-10-29 20:38:17 UTC (rev 1679)
@@ -685,7 +685,7 @@
 
 if ($opt_auto_nmu eq 'yes' and ! $opt_v and ! $opt_l and ! $opt_s and 
     ! $opt_qa and ! $opt_bpo and ! $opt_bn and ! $opt_n and ! $opt_c and
-    ! length $ENV{'CHANGELOG'} and
+    ! (exists $ENV{'CHANGELOG'} and length $ENV{'CHANGELOG'}) and
     ! $opt_create and ! $opt_a_passed and ! $opt_r and ! $opt_e and
     ! ($opt_release_heuristic eq 'changelog' and
        $changelog{'Distribution'} eq 'UNRELEASED' and ! $opt_i_passed)) {



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to