diff options
author | 2009-02-21 01:59:02 +0000 | |
---|---|---|
committer | 2009-02-21 01:59:02 +0000 | |
commit | bc020c31c30d84e15954a26b7066cfdae7ff3064 (patch) | |
tree | 3e62d01bcebebf918b6bbecf4085ea54207f9be6 | |
parent | Fix typo in normalize_emerge_opts(). Bug #259526 (diff) | |
download | gentoolkit-bc020c31c30d84e15954a26b7066cfdae7ff3064.tar.gz gentoolkit-bc020c31c30d84e15954a26b7066cfdae7ff3064.tar.bz2 gentoolkit-bc020c31c30d84e15954a26b7066cfdae7ff3064.zip |
Inside summarylist(), it's possible for myglsa.packages.keys() to contain
unicode objects, which trigger and exception like this:
File "//usr/lib64/portage/pym/portage/dep.py", line 535, in __init__
obj_setattr(self, x, getattr(s, x))
AttributeError: 'unicode' object has no attribute '__eq__'
To solve this problem, convert unicode objects to plain str before passing
them to the portage api. Thanks to Ned Ludd <solar@g.o> for reporting.
svn path=/; revision=548
-rwxr-xr-x | trunk/src/glsa-check/glsa-check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/src/glsa-check/glsa-check b/trunk/src/glsa-check/glsa-check index 7d3931a..efb9e91 100755 --- a/trunk/src/glsa-check/glsa-check +++ b/trunk/src/glsa-check/glsa-check @@ -222,7 +222,7 @@ def summarylist(myglsalist, fd1=sys.stdout, fd2=sys.stderr): fd1.write("... ") else: for pkg in myglsa.packages.keys(): - mylist = vardb.match(portage.dep_getkey(pkg)) + mylist = vardb.match(portage.dep_getkey(str(pkg))) if len(mylist) > 0: pkg = color(" ".join(mylist)) fd1.write(" " + pkg + " ") |