From: dol-sen Date: Thu, 25 Aug 2011 07:04:47 +0000 (-0700) Subject: fix bug 380573. X-Git-Tag: gentoolkit-0.3.0.5~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=92e6be628307b0643307202ba9994cab9a4dd439;p=gentoolkit.git fix bug 380573. --- diff --git a/pym/gentoolkit/equery/meta.py b/pym/gentoolkit/equery/meta.py index 01e090a..f617cfa 100644 --- a/pym/gentoolkit/equery/meta.py +++ b/pym/gentoolkit/equery/meta.py @@ -22,7 +22,7 @@ from functools import partial import gentoolkit.pprinter as pp from gentoolkit import errors -from gentoolkit import keyword +from gentoolkit.keyword import Keyword from gentoolkit.equery import format_options, mod_usage, CONFIG from gentoolkit.helpers import print_sequence, print_file from gentoolkit.textwrap_ import TextWrapper @@ -217,7 +217,7 @@ def format_keywords(keywords): result = [] - for kw in sorted(keywords, keyword.compare_strs): + for kw in sorted(keywords, key=Keyword): if kw.startswith('-'): # arch masked kw = pp.keyword(kw, stable=False, hard_masked=True)