diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-18 08:16:31 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-18 08:16:31 +0000 |
commit | 8190a8913e754bfbf3a1ec8af037d5e177285a73 (patch) | |
tree | 6901d953b8ff6881c9e60bbb5a69b1fa5a44f1c0 | |
parent | df8ef8acce04b1d378ed590ff7556852a46944ae (diff) | |
download | portage-8190a8913e754bfbf3a1ec8af037d5e177285a73.tar.gz portage-8190a8913e754bfbf3a1ec8af037d5e177285a73.tar.bz2 portage-8190a8913e754bfbf3a1ec8af037d5e177285a73.zip |
Make serialize_eclasses() sort eclass names.
svn path=/main/trunk/; revision=11992
-rw-r--r-- | pym/portage/cache/template.py | 4 |
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""" |