def __init__(self, currentver, manifest=None, manifesturi=None):

        # fetch the manifest
        if manifest is None:
            if manifesturi is None:
                raise Exception("Update not given manifest object or URI")

            with URI(manifesturi) as uri:
                manifest = Manifest.from_yaml(uri.read())

        # verify versions match
        if currentver != manifest["current-version"]:
            log.error("Current version '{0}' does not match manifest '{1}'".format(
                currentver, manifest["current-version"]))
            raise Exception("Current version does not match manifest")

        self.manifest = manifest
        self.package = None
Fetch a manifest and verify that it matches the given version.
dataset/ETHPy150Open redmatter-ca/combine/combine/update.py/Update.__init__