From: Zac Medico Date: Tue, 18 Nov 2008 08:17:58 +0000 (-0000) Subject: Make serialize_eclasses() sort eclass names. (trunk r11992) X-Git-Tag: v2.1.6_rc1~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7b56fd2496472e71e3e72a8c941d786f0f5957de;p=portage.git Make serialize_eclasses() sort eclass names. (trunk r11992) svn path=/main/branches/2.1.6/; revision=11993 --- 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"""