From: fuzzyray Date: Fri, 7 Nov 2008 22:11:19 +0000 (-0000) Subject: Fix echangelog to properly identify added ebuilds. (Bug #176337) X-Git-Tag: gentoolkit-0.2.4.3^2~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7b6eee352790ad3874d8a2c84d2b07682b2e39d7;p=gentoolkit.git Fix echangelog to properly identify added ebuilds. (Bug #176337) svn path=/; revision=518 --- diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 3a5ac5b..81d6e10 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -333,6 +333,18 @@ if (@ebuilds) { } close C; +# Subversion diff doesn't identify new versions. So use the status command +if (($vcs eq "svn") and (@ebuilds)) { + open C, $vcs{$vcs}{status}." @ebuilds 2>&1 |" or die "Can't run: ".$vcs{$vcs}{status}."$!\n"; + $_ = ; + while (defined $_) { + if (/^A\s*(\s{1}[^\s]*)\.ebuild/) { + push @new_versions, $1; + } + $_ = ; + } +} + # 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 !~ /^\*\Q$_\E\s/m } @new_versions;