From: Zac Medico Date: Tue, 18 Nov 2008 08:16:31 +0000 (-0000) Subject: Make serialize_eclasses() sort eclass names. X-Git-Tag: v2.2_rc15~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8190a8913e754bfbf3a1ec8af037d5e177285a73;p=portage.git Make serialize_eclasses() sort eclass names. svn path=/main/trunk/; revision=11992 --- 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"""