Fix find_world_packages() to be able to open the world file
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 12 Jan 2007 00:09:12 +0000 (00:09 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 12 Jan 2007 00:09:12 +0000 (00:09 -0000)
svn path=/; revision=339

trunk/src/gentoolkit/helpers.py

index fa4689f320bab0a411a4981136119ee38e039940..3fa32d1d0a4c1a15c5bc797a08e702b62723f4b7 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/python2
+# /usr/bin/python2
 #
 # Copyright(c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
 # Copyright(c) 2004, Gentoo Foundation
@@ -85,7 +85,7 @@ def find_system_packages(prefilter=None):
 def find_world_packages(prefilter=None):
        """Returns a tuple of lists, first list is resolved world packages,
        seond is unresolved package names."""
-       f = open(portage.WORLD_FILE)
+       f = open(portage.root+portage.WORLD_FILE)
        pkglist = f.readlines()
        resolved = []
        unresolved = []