From a0bf114f23e64a19fe7bdfdba61b6bceba981771 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Tue, 22 May 2007 21:07:14 +0000 Subject: [PATCH] Add patch from genstef to fix issues from Bug 176337 svn path=/; revision=402 --- trunk/ChangeLog | 3 +++ trunk/src/echangelog/echangelog | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index e5f00b8..e150ce2 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,6 @@ +2007-05-21: Paul Varner + * echangelog: Add patch from genstef to fix issues from Bug 176337 + 2007-05-11: Paul Varner * eclean: Changed permission check to see if you are either root or belong to the portage group (Bug #177385) diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 3e86860..f86801a 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -410,6 +410,7 @@ close O or die "Can't close ChangeLog.new: $!\n"; # copyright lines on ebuilds that haven't changed. I verified this with an IP # lawyer. for my $e (grep /\.ebuild$/, @files) { + if (-s $e) { my ($etext, $netext); open E, "<$e" or warn("Can't read $e to update copyright year\n"), next; { local $/ = undef; $etext = ; } @@ -427,6 +428,7 @@ for my $e (grep /\.ebuild$/, @files) { # Move things around and show the diff system "diff -U 0 $e $e.new"; rename "$e.new", $e or warn("Can't rename $e.new: $!\n"); + } } # Move things around and show the ChangeLog diff @@ -442,7 +444,7 @@ if ($vcs eq "cvs") { } } elsif ($vcs eq "svn") { if (open F, ".svn/entries") { - system("svn add ChangeLog") unless (scalar grep /^ChangeLog$/, ); + system("svn add ChangeLog") unless (scalar grep /ChangeLog/, ); } } else { system("$vcs{$vcs}{add} ChangeLog 2>&1 >> /dev/null"); -- 2.26.2