Logo Search packages:      
Sourcecode: yum version File versions  Download package

def yum::YumBase::doGroupLists (   self,
  uservisible = 0 
)

returns two lists of groups, installed groups and available groups
   optional 'uservisible' bool to tell it whether or not to return
   only groups marked as uservisible

Definition at line 1205 of file __init__.py.

01205                                          :
        """returns two lists of groups, installed groups and available groups
           optional 'uservisible' bool to tell it whether or not to return
           only groups marked as uservisible"""
        
        if uservisible:
            availgroups = self.groupInfo.visible_groups
        else:
            availgroups = self.groupInfo.grouplist
        
        installed = []
        available = []
        
        for id in availgroups:
            grp = self.groupInfo.group_by_id[id]
            if self.groupInfo.isGroupInstalled(grp.name):
                installed.append(grp.name)
            else:
                available.append(grp.name)

        installed = misc.unique(installed)
        available = misc.unique(available)
        installed.sort()
        available.sort()
        
        return installed, available
        
    def getPackageObject(self, pkgtup):


Generated by  Doxygen 1.6.0   Back to index