Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] also
Date: Wed, 26 Aug 2009 20:32:15
Message-Id: 20090826094632.GA6839@gentoo.org
In Reply to: RE: [gentoo-alt] also by Markus Duft
1 On 26-08-2009 11:28:52 +0200, Markus Duft wrote:
2 > >
3 > > On 26-08-2009 00:59:44 -0400, Michael Yang wrote:
4 > > > anyone notice that in sys-apps/portage-2.2.00.14153 dispatch-conf is
5 > > > failing with:
6 > > >
7 > > > Traceback (most recent call last):
8 > > > File "/home/msyang/Linux-x86_64/usr/sbin/dispatch-conf", line 36,
9 > > in <module>
10 > > > mydir = portage.const.EPREFIX+"/var/tmp/dispatch-conf."
11 > > > NameError: name 'portage' is not defined
12 > > >
13 > > > I think an "import portage" is missing...
14 > >
15 > > I thought there was a bug about this, but I can't find it. Anyway,
16 > > yeah, thanks, sorry for the inconvenience
17 >
18 > there is: Bug 282581 i fixed it today.
19
20 Thanks for the fix. It was way simpler though:
21 from portage.const import EPREFIX
22
23 Be aware that your quickpkg fix broke its self-protecting behaviour, as
24 you imported portage before the pythonpath was fixed to make sure it
25 imports the correct portage.
26
27
28 --
29 Fabian Groffen
30 Gentoo on a different level