Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76568 - find_world_packages function broken in app-portage/gentoolkit-0.2.0-r3/0.2.1
Summary: find_world_packages function broken in app-portage/gentoolkit-0.2.0-r3/0.2.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-01-03 15:20 UTC by Sam Widmer
Modified: 2006-07-31 21:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Widmer 2005-01-03 15:24:19 UTC
The function looks for the world file to be in var/cache/edb/ but as of portage-2.0.51-r3 the new location for the world file is var/lib/portage/

Reproducible: Always
Steps to Reproduce:
1. Open python
2. Import gentoolkit
3. call gentoolkit.find_world_packages()

Actual Results:  
Traceback (most recent call last):
  File "<input>", line 1, in ?
  File "/usr/lib/gentoolkit/pym/gentoolkit/gentoolkit.py", line 264, in
find_world_packages
    f = open(portage.root+"var/cache/edb/world")
IOError: [Errno 2] No such file or directory: '/var/cache/edb/world'

Expected Results:  
Should have returned a list of package objects
Comment 1 Sam Widmer 2005-01-03 15:34:45 UTC
Line 264 in gentoolkit.py needs to be changed from:
   f = open(portage.root+"var/cache/edb/world")
To:
   f = open(portage.root+"var/lib/portage/world")

Might also consider make'n the current version of gentoolkit depend on
 portage < portage-2.0.51-r3
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-05 15:20:50 UTC
Still broken in -r3.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2006-01-05 17:34:51 UTC
This is not going to be fixed in 0.2.1 as it will delay getting that version of gentoolkit stable and none of the utilities currently in gentoolkit utilize that function.

Fix will be released with the next gentoolkit-0.2.2_pre release.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2006-07-31 21:04:26 UTC
This was fixed in gentoolkit-0.2.2