All pastes #26545 Raw Edit

Stuff

public text v1 · immutable
#26545 ·published 2005-10-24 22:38 UTC
rendered paste body
this was from
python:
import portage.config
conf = portage.config.load_config()
tree = conf.repo["rsync repo"]
for package in tree:
   print package.depends

...
opengl? ( >=x11-base/opengl-update-2.1.1 )
>=media-libs/libsdl-1.2 dev-lang/tcl dev-lang/tk sys-devel/autoconf !bootstrap? ( sys-devel/patch )
Traceback (most recent call last):
  File "<stdin>", line 2, in ?
  File "/home/warnera6/svn/savior/portage/ebuild/ebuild_package.py", line 57, in __getattr__
    val = DepSet(self.data.get("DEPEND",""), atom)
  File "/home/warnera6/svn/savior/portage/ebuild/conditionals.py", line 60, in __init__
    depsets[-2].restrictions.append(operators[conditionals.pop(-1)](*depsets[-1].restrictions))
  File "/home/warnera6/svn/savior/portage/restrictions/boolean.py", line 31, in __init__
    raise TypeError, x
TypeError: sdl? ( media-libs/libsdl )