Closed hagenw closed 4 months ago
It should be fixed by the following code:
if missing_files:
with tempfile.TemporaryDirectory() as tmp_root:
backend.get_archive(
archive_file,
tmp_root,
deps.version(missing_files[0]),
)
When a file was deleted that is part of a previously published archive, and that archive was not published in
previous_version
, but earlieraudb.publish()
will fail to update that archive as it tries to downloadprevious_version
of that archive and not the version specified in the dependency table:https://github.com/audeering/audb/blob/adf83dc3f8de1d8329405fc08e015f30489cb915/audb/core/publish.py#L408-L414