Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] portage bug with summary.log
Date: Wed, 10 Mar 2010 11:59:32
Message-Id: 20100310120126.GA24756@gentoo.org
In Reply to: [gentoo-alt] portage bug with summary.log by Alan Hourihane
1 On 10-03-2010 11:55:28 +0000, Alan Hourihane wrote:
2 > Hi Fabian,
3 >
4 > Since we changed my EPREFIX to "" I've been getting summary.log
5 > droppings in odd locations.
6 >
7 > It turns out that the code in mod_save_summary.py has this...
8 >
9 > if mysettings["PORT_LOGDIR"] != "":
10 > elogdir = os.path.join(mysettings["PORT_LOGDIR"],
11 > "elog")
12 > else:
13 > elogdir = os.path.join(EPREFIX, "var", "log", "portage",
14 > "elog")
15 >
16 > And because my EPREFIX is "" then we never get a "/" in front of var so
17 > it creates var/log/portage/elog/summary.log in the place you emerge the
18 > package.
19 >
20 > We need a leading "/" here.
21 >
22 > Can you fix ?
23
24 does this work for you?
25
26 elogdir = os.path.join("/", EPREFIX_LSTRIP, "var", "log", "portage", "elog");
27
28
29 --
30 Fabian Groffen
31 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] portage bug with summary.log Alan Hourihane <alanh@×××××××××××.uk>