commit: b9de1f7b39a1ce43f22018e4a1c03bef6677360c
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 25 21:23:33 2016 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Thu Feb 25 21:24:55 2016 +0000
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=b9de1f7b
enalyze/analyze.py: Sort the flags for the analyze packages output
Feature request from: Fernando Reyes
pym/gentoolkit/enalyze/analyze.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pym/gentoolkit/enalyze/analyze.py
b/pym/gentoolkit/enalyze/analyze.py
index 2d9c85e..ce83ba6 100644
--- a/pym/gentoolkit/enalyze/analyze.py
+++ b/pym/gentoolkit/enalyze/analyze.py
@@ -429,9 +429,10 @@ class Analyse(ModuleBase):
for cpv in cpvs:
(flag_plus, flag_neg, unset) = flags.analyse_cpv(cpv)
if self.options["unset"]:
- self.printer(cpv, "", (flag_plus, flag_neg,
unset))
+ self.printer(cpv, "", (sorted(flag_plus),
sorted(flag_neg),
+ sorted(unset)))
else:
- self.printer(cpv, "", (flag_plus, flag_neg, []))
+ self.printer(cpv, "", (sorted(flag_plus),
sorted(flag_neg), []))
if not self.options['quiet']:
print("===================================================")
print("Total number of installed ebuilds =",