'Verify we have at least one template that matches maj.minor version.'

def CheckTemplates(self, base_dir, version):

    major_minor = '.'.join(version.split('.')[0:2])
    templates = glob.glob(os.path.join(base_dir, ('templates/*%s*.zip' % major_minor)))
    required_templates = set([x.replace('maj.minor', major_minor) for x in self.REQUIRED_TEMPLATES])
    templates_present = set([re.sub(('_%s[^_]+_' % major_minor), ('_%s_' % major_minor), os.path.basename(x)) for x in templates])
    difference = (required_templates - templates_present)
    if difference:
        raise RuntimeError(('Missing    templates    %s' % difference))
