projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df8ef8a
)
Make serialize_eclasses() sort eclass names.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 18 Nov 2008 08:16:31 +0000
(08:16 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 18 Nov 2008 08:16:31 +0000
(08:16 -0000)
svn path=/main/trunk/; revision=11992
pym/portage/cache/template.py
patch
|
blob
|
history
diff --git
a/pym/portage/cache/template.py
b/pym/portage/cache/template.py
index 3cf8309dd4a75d16ed9d439c31a5e99f6b7d8ad7..238f9dc40c40f7c7003b7251b12b05283aa4b577 100644
(file)
--- a/
pym/portage/cache/template.py
+++ b/
pym/portage/cache/template.py
@@
-189,8
+189,8
@@
def serialize_eclasses(eclass_dict):
"""
if not eclass_dict:
return ""
- return "\t".join(
["%s\t%s\t%s" % (k, v[0], str(v[1]))
\
- for k
, v in eclass_dict.iteritems()]
)
+ return "\t".join(
k + "\t%s\t%s" % eclass_dict[k]
\
+ for k
in sorted(eclass_dict)
)
def reconstruct_eclasses(cpv, eclass_string):
"""returns a dict when handed a string generated by serialize_eclasses"""