aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoridl0r <idl0r@gentoo.org>2009-05-01 20:21:50 +0000
committeridl0r <idl0r@gentoo.org>2009-05-01 20:21:50 +0000
commit4874cfe9b335e373fffc7ad05c58def3a797618a (patch)
tree2e6553be396ff23038bc06b9d6ef220bdfcfa061
parentFixed stty call. (diff)
downloadgentoolkit-4874cfe9b335e373fffc7ad05c58def3a797618a.tar.gz
gentoolkit-4874cfe9b335e373fffc7ad05c58def3a797618a.tar.bz2
gentoolkit-4874cfe9b335e373fffc7ad05c58def3a797618a.zip
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
-rwxr-xr-xtrunk/src/echangelog/echangelog7
1 files changed, 6 insertions, 1 deletions
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