Gentoo Archives: gentoo-alt

From: Alan Hourihane <alanh@×××××××××××.uk>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] portage bug ?
Date: Wed, 31 Aug 2011 09:28:26
Message-Id: 4E5DFEAC.6020809@fairlite.co.uk
In Reply to: Re: [gentoo-alt] portage bug ? by Alan Hourihane
1 On 08/31/11 01:13, Alan Hourihane wrote:
2 > On 08/29/11 20:05, Fabian Groffen wrote:
3 >> On 29-08-2011 11:42:03 +0200, Fabian Groffen wrote:
4 >>> On 29-08-2011 11:30:46 +0200, Burcin Erocal wrote:
5 >>>>> "--dir-file=%s/dir %s/%s" % (EPREFIX, inforoot, inforoot, x))[1]
6 >>>>> TypeError: not all arguments converted during string formatting
7 >>>> 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.
8 >>>>
9 >>> Thanks, there was a bug about it, I now see there is a ) missing. I'll
10 >>> apply your patch soon.
11 >> I've been looking at default, and didn't find extra parenthesis there,
12 >> so I tried the following. Does that work for you?
13 >>
14 >> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commitdiff;h=749ef8e20137bede1a9824448b2676224b06f71b;hp=5b6156b085ab5ae518fa6c4ed9b2e2c5b75fd184
15 >> or
16 >> http://prefix.gentooexperimental.org:8000/portage-prefix/rev/4e2a4854863a
17 >>
18 > Didn't work.....
19 >
20 > Traceback (most recent call last):
21 > File "/usr/bin/emerge", line 44, in <module>
22 > retval = emerge_main()
23 > File "/j/usr/lib/portage/pym/_emerge/main.py", line 1909, in emerge_main
24 > trees, mtimedb, retval)
25 > File "/j/usr/lib/portage/pym/_emerge/main.py", line 370, in post_emerge
26 > infodirs, info_mtimes, retval)
27 > File "/j/usr/lib/portage/pym/_emerge/main.py", line 164, in
28 > chk_updated_info_files
29 > "--dir-file=%s/dir %s/%s" % (_unicode_decode(EPREFIX), inforoot,
30 > inforoot, x))[1]
31 > TypeError: not all arguments converted during string formatting
32 >
33 >
34 Using this seemed to work ....
35
36 "--dir-file="+EPREFIX+inforoot+"/dir "+EPREFIX+inforoot+"/"+x)[1]
37
38 Alan.

Replies

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