From: agriffis Date: Wed, 23 Mar 2005 13:48:22 +0000 (-0000) Subject: handle package moves without adding new version lines X-Git-Tag: gentoolkit-0.2.4.3~305 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4bddf72d233a0c197129caee9a161167ac09d2c;p=gentoolkit.git handle package moves without adding new version lines svn path=/; revision=201 --- diff --git a/trunk/src/echangelog/ChangeLog b/trunk/src/echangelog/ChangeLog index d16ae1c..698167e 100644 --- a/trunk/src/echangelog/ChangeLog +++ b/trunk/src/echangelog/ChangeLog @@ -1,3 +1,6 @@ +23 Mar 2005 Aron Griffis + * handle package moves without adding new version lines + 08 Mar 2005 Aron Griffis * don't complain about cvs add of digests #84377 * use gmtime instead of localtime diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 750828c..0aed254 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -194,6 +194,10 @@ if (@ebuilds) { } close C; +# When a package move occurs, the versions appear to be new even though they are +# not. Trim them from @new_versions in that case. +@new_versions = grep { $text !~ /^\*$_\s/m } @new_versions; + # Check if we have any files left, otherwise re-insert ebuild list # (of course, both might be empty anyway) @files = @ebuilds unless (@files);