def conditional_symlink_current_release(deployed=False):
    current_version = None
    if exists(utils.absolute_release_path()):
        with settings(cd(utils.absolute_release_path()), warn_only=True):
            current_version = run('git describe')
    if (not exists(utils.absolute_release_path())
            or deployed or current_version != env.pretty_release):
        _symlink_current_release(env.release_path)
Swap the 'current' symlink to point to the new release if it doesn't
dataset/ETHPy150Open bueda/ops/buedafab/deploy/release.py/conditional_symlink_current_release