summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/cache/template.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/cache/template.py b/pym/portage/cache/template.py
index 3cf8309dd..238f9dc40 100644
--- 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"""