[yum-cvs] yum cli.py,1.197,1.198
Seth Vidal
skvidal at login.linux.duke.edu
Fri Dec 9 15:32:02 UTC 2005
Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv31898
Modified Files:
cli.py
Log Message:
many changes to comps. Cleans up the interface quite a bit.
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -r1.197 -r1.198
--- cli.py 3 Dec 2005 08:28:15 -0000 1.197
+++ cli.py 9 Dec 2005 15:31:59 -0000 1.198
@@ -1327,15 +1327,10 @@
userlist = self.extcmds
for strng in userlist:
- matched = False
- for group in self.comps.groups.values():
- names = [ group.name, group.groupid]
- names.extend(group.translated_name.values())
- if strng in names:
- self.displayPkgsInGroups(group)
- matched = True
-
- if not matched:
+ group = self.comps.return_group(strng)
+ if group:
+ self.displayPkgsInGroups(group)
+ else:
self.errorlog(1, 'Warning: Group %s does not exist.' % strng)
return 0, []
More information about the Yum-cvs-commits
mailing list