projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1822e8a
)
In Package._validate_deps(), force unicode format string in
author
Zac Medico
<zmedico@gentoo.org>
Wed, 15 Sep 2010 06:32:43 +0000
(23:32 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 15 Sep 2010 06:32:43 +0000
(23:32 -0700)
check_required_use() exception handling (for python-2.x safety).
pym/_emerge/Package.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/Package.py
b/pym/_emerge/Package.py
index 61a976530fab6a4e88b029292c04fdbbbb92a76e..0db16fb2f9d9d9bc720ec4319d9c65be441991cd 100644
(file)
--- a/
pym/_emerge/Package.py
+++ b/
pym/_emerge/Package.py
@@
-125,8
+125,11
@@
class Package(Task):
check_required_use(v, (),
self.iuse.is_valid_flag)
except InvalidDependString as e:
+ # Force unicode format string for python-2.x safety,
+ # ensuring that PortageException.__unicode__() is used
+ # when necessary.
self._invalid_metadata(k + ".syntax",
-
"%s: %s"
% (k, e))
+
_unicode_decode("%s: %s")
% (k, e))
k = 'SRC_URI'
v = self.metadata.get(k)