'This is an os.path.walk routine that looks for potential yum repositories
to be added to the configuration for post-install usage.'

def yum_repo_scanner(self, distro, dirname, fnames):

    matches = {}
    for x in fnames:
        if ((x == 'base') or (x == 'repodata')):
            self.logger.info(('processing    repo    at    :    %s' % dirname))
            gloob1 = glob.glob(('%s/%s/*comps*.xml' % (dirname, x)))
            if (len(gloob1) >= 1):
                if (dirname in matches):
                    self.logger.info(("looks    like    we've    already    scanned    here:    %s" % dirname))
                    continue
                self.logger.info(('need    to    process    repo/comps:    %s' % dirname))
                self.yum_process_comps_file(dirname, distro)
                matches[dirname] = 1
            else:
                self.logger.info(('directory    %s    is    missing    xml    comps    file,    skipping' % dirname))
                continue
