From 4b49b31b45eedb11706ed9bf75dc04eca2c63541 Mon Sep 17 00:00:00 2001 From: agriffis Date: Sun, 26 Mar 2006 19:21:54 +0000 Subject: [PATCH] echangelog: don't warn about missing ebuilds when updating copyrights #120061 svn path=/; revision=291 --- trunk/ChangeLog | 4 ++++ trunk/src/echangelog/ChangeLog | 4 ++++ trunk/src/echangelog/echangelog | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 34329fa..7ad16e7 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2006-05-26 Aron Griffis + * echangelog: Don't warn about missing ebuilds when updating + copyrights #120061 + 2006-05-25 Aron Griffis * eviewcvs: Update for sources.gentoo.org, add subversion support diff --git a/trunk/src/echangelog/ChangeLog b/trunk/src/echangelog/ChangeLog index ffafb66..c1c5885 100644 --- a/trunk/src/echangelog/ChangeLog +++ b/trunk/src/echangelog/ChangeLog @@ -1,3 +1,7 @@ +26 Mar 2006 Aron Griffis + * echangelog: Don't warn about missing ebuilds when updating + copyrights #120061 + 27 Apr 2005 Aron Griffis * more changes for #90326; report all trivial files if no significant changes can be found diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 03b5f25..1867ef6 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -334,7 +334,7 @@ close O or die "Can't close ChangeLog.new: $!\n"; # Update affected ebuild copyright dates. There is no reason to update the # copyright lines on ebuilds that haven't changed. I verified this with an IP # lawyer. -for my $e (grep /\.ebuild$/, @files) { +for my $e (grep { /\.ebuild$/ && -e } @files) { my ($etext, $netext); open E, "<$e" or warn("Can't read $e to update copyright year\n"), next; { local $/ = undef; $etext = ; } -- 2.26.2