diff options
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 328b7f1e9..cb369a6b9 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3914,8 +3914,7 @@ class depgraph(object): if myoldbest: if myinslotlist: myoldbest = [myoldbest] - for key in myoldbest: - pos = myoldbest.index(key) + for pos, key in enumerate(myoldbest): key = portage.pkgsplit(key)[1] + "-" + portage.pkgsplit(key)[2] if key[-3:] == "-r0": key = key[:-3] |