1 |
Jason Stubbs wrote: |
2 |
> Hi all, |
3 |
> |
4 |
> First bug summary. Only four days worth here but, in light of my previous |
5 |
> announcement, I figure that I should send it out early. Next one will come on |
6 |
> Tuesday and then on Sundays after that. |
7 |
> |
8 |
> I've done no cleaning of this list whatsoever so you'll find some of these |
9 |
> are already closed, are duplicates or aren't portage bugs at all. I've |
10 |
> ordered it by number of changes followed by reverse bug number. The theory |
11 |
> goes that the bugs that are important (at least to users) and the bugs |
12 |
> that are likely to be easy to fix will float to the top. |
13 |
> |
14 |
> If you're interested in helping, start at the top and investigate downward |
15 |
> until you hit something that tickles your fancy. Then see if you can figure |
16 |
> out what's going wrong and post some patches (either here or bugs.gentoo.org, |
17 |
> preferably both). These are only bugs that have gone to dev-portage@g.o |
18 |
> but, if there is demand, I can automate some similar reports for tools-portage |
19 |
> and sandbox as well. |
20 |
> |
21 |
[snip] |
22 |
> 100479 Something broken in dblink.getcontents when parsing a broken |
23 |
> CONTENTS |
24 |
|
25 |
Thanks Jason, I like this! |
26 |
|
27 |
I believe that I've squashed Bug 100479. The problem here is that we are iterating through pkgfiles.keys() and inside the iteration loop we modify the obj variable so subsequent calls to pkgfiles[obj] may fail with the reported error. |
28 |
|
29 |
for obj in mykeys: |
30 |
obj=os.path.normpath(objkey) |
31 |
if obj[:2]=="//": |
32 |
obj=obj[1:] |
33 |
|
34 |
The obvious solution is to use a separate variable for the pkgfiles key. My patch introduces a new variable called objkey and replaces all pkgfiles[obj] calls with pkgfiles[objkey]. See portage-2.0.51.22-dblink.unmerge-pkgfiles-key.patch attached to the bug. |
35 |
|
36 |
Zac |
37 |
-- |
38 |
gentoo-portage-dev@g.o mailing list |