From: karltk Date: Sun, 27 Jul 2003 17:24:19 +0000 (-0000) Subject: Fixes #23881 X-Git-Tag: gentoolkit-0.2.4.3~468 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bbda2108182006e85c80f1c173fd5a101d838ca7;p=gentoolkit.git Fixes #23881 svn path=/; revision=34 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 6f1bc41..99cf606 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,4 +1,7 @@ - + +2003-06-27 Karl Trygve Kalleberg + * Added patch to echangelog to consider PORTDIR, fixes #23881. + 2003-06-26 Karl Trygve Kalleberg * Added echangelog, by agenkin * Added ekeyword, by agenkin diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index f9fcba1..a893e27 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -30,8 +30,10 @@ if (-f 'ChangeLog') { } else { # No ChangeLog here, maybe we should make one... if (<*.ebuild>) { - open I, '<../../skel.ChangeLog' - or die "Can't open ../../skel.ChangeLog for input: $!\n"; + my ($portdir) = `/usr/bin/portageq portdir 2>/dev/null`; + chomp($portdir); + open I, "<$portdir/skel.ChangeLog" + or die "Can't open $portdir/skel.ChangeLog for input: $!\n"; { local $/ = undef; $text = ; } close I; my ($cwd) = getcwd();