def __init__(self, name, version, url_pattern, build_group):
    self.name = name
    self.version = version
    self.dir = '{}-{}'.format(name, version)
    self.underscored_version = version.replace('.', '_')
    if (url_pattern is not None):
        self.download_url = url_pattern.format(version, self.underscored_version)
    else:
        self.download_url = None
    self.build_group = build_group
    self.archive_name = make_archive_name(name, version, self.download_url)
    self.patch_version = 0
def __init__(self, name, version, url_pattern, build_group):
    self.name = name
    self.version = version
    self.dir = '{}-{}'.format(name, version)
    self.underscored_version = version.replace('.', '_')
    if (url_pattern is not None):
        self.download_url = url_pattern.format(version, self.underscored_version)
    else:
        self.download_url = None
    self.build_group = build_group
    self.archive_name = make_archive_name(name, version, self.download_url)
    self.patch_version = 0