List Archive: gentoo-alt
Note: Due to technical difficulties, the Archives are currently not up to date.
provides an alternative service for most mailing lists.c.f. bug 424647
On Mon, 29 Aug 2011 21:05:20 +0200
Fabian Groffen <email@example.com> wrote:
> On 29-08-2011 11:42:03 +0200, Fabian Groffen wrote:
> > On 29-08-2011 11:30:46 +0200, Burcin Erocal wrote:
> > > > "--dir-file=%s/dir %s/%s" % (EPREFIX, inforoot, inforoot,
> > > > x)) TypeError: not all arguments converted during string
> > > > formatting
> > >
> > > I also ran into this last week. The following patch fixes the
> > > problem for me. It seems to be introduced in the prefix version
> > > of portage.
> > >
> > Thanks, there was a bug about it, I now see there is a ) missing.
> > I'll apply your patch soon.
> I've been looking at default, and didn't find extra parenthesis there,
> so I tried the following. Does that work for you?
I didn't have time to test the patch myself, since we already have a
report of it not working, here is a justification for my patch...
AFAICT, the original error message indicates that more arguments are
provided to % than there are place holders in the string. The +
operator has lower precedence than %, so the string is not concatenated
with the part on the previous line. Note that the string in the error
message has 3 place holders only, the fourth should come from the line
above. I added parenthesis around the string addition to fix the