def update_bundle_version(self, bundle):
        version = self.get_version(bundle)
        orig_path = bundle.get_bundle_path()
        dir, basename = os.path.split(orig_path)
        if '.' in basename:
            name, _, extension = basename.rpartition('.')
            versioned_basename = '.'.join((name, version, extension))
        else:
            versioned_basename += '.' + version
        self.versions[bundle.name] = versioned_basename
        versioned_path = os.path.join(dir, versioned_basename)
        shutil.copy(orig_path, versioned_path)
dataset/ETHPy150Open rnk/django-media-bundler/media_bundler/versioning.py/VersioningBase.update_bundle_version/original