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

def package-cleanup::PackageCleanup::_should_show_leaf (   self,
  po,
  leaf_regex,
  exclude_devel,
  exclude_bin 
) [private]
Determine if the given pkg should be displayed as a leaf or not.

Return True if the pkg should be shown, False if not.

Definition at line 217 of file package-cleanup.py.

                                                                           :
        """
        Determine if the given pkg should be displayed as a leaf or not.

        Return True if the pkg should be shown, False if not.
        """
        if po.name == 'gpg-pubkey':
            return False
        name = po.name
        if exclude_devel and name.endswith('devel'):
            return False
        if exclude_bin:
            for file_name in po.filelist:
                if file_name.find('bin') != -1:
                    return False
        if leaf_regex.match(name):
            return True
        return False


Generated by  Doxygen 1.6.0   Back to index