[yum-commits] repoquery.py
James Antill
james at osuosl.org
Fri Sep 10 18:34:35 UTC 2010
repoquery.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 65bc3e055364ef36d69037bbed5c229407ba5458
Author: James Antill <james at and.org>
Date: Fri Sep 10 14:33:31 2010 -0400
Make --groupmember have sorted output.
diff --git a/repoquery.py b/repoquery.py
index 4f42061..cee1089 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -755,9 +755,9 @@ class YumBaseQuery(yum.YumBase):
pkgs = self.matchGroups(items)
elif self.options.groupmember:
pkglist = self.matchPkgs(items, plain_pkgs=True)
- for pkg in pkglist:
+ for pkg in sorted(pkglist):
print to_unicode(pkg)
- for group in self.find_groupmember(pkg.name):
+ for group in sorted(self.find_groupmember(pkg.name)):
print to_unicode(' @%s' % group)
pkgs = []
else:
More information about the Yum-commits
mailing list