From bbda2108182006e85c80f1c173fd5a101d838ca7 Mon Sep 17 00:00:00 2001 From: karltk Date: Sun, 27 Jul 2003 17:24:19 +0000 Subject: [PATCH] Fixes #23881 svn path=/; revision=34 --- trunk/ChangeLog | 5 ++++- trunk/src/echangelog/echangelog | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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(); -- 2.26.2