From: idl0r Date: Fri, 1 May 2009 20:21:50 +0000 (-0000) Subject: Define a action if no files have been changed, thanks to grobian. That should prevent... X-Git-Tag: gentoolkit-0.3.0_rc5~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4874cfe9b335e373fffc7ad05c58def3a797618a;p=gentoolkit.git Define a action if no files have been changed, thanks to grobian. That should prevent "Use of uninitialized value in concatenation" warnings. svn path=/; revision=572 --- diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 0bd90fb..834e4ac 100755 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -458,7 +458,12 @@ unless (@files) { } @files = sort sortfunc @trivial; - @files = qw/ChangeLog/ unless @files; # last resort to put something in the list + + # last resort to put something in the list + unless (@files) { + @files = qw/ChangeLog/; + $actions{'ChangeLog'} = ""; + } } # sort