From 81a150d03f2db771bb17b57956bead6cd10a47d4 Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Tue, 14 Nov 2023 00:31:10 -0500 Subject: [PATCH] Fix files being deleted during file:// syncs closes #4681 --- CHANGES/4681.bugfix | 1 + pulpcore/download/file.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/4681.bugfix diff --git a/CHANGES/4681.bugfix b/CHANGES/4681.bugfix new file mode 100644 index 0000000000..2388ea2f6a --- /dev/null +++ b/CHANGES/4681.bugfix @@ -0,0 +1 @@ +Fix file:// syncs deleting the original files. diff --git a/pulpcore/download/file.py b/pulpcore/download/file.py index a078e3b99d..100872dcc4 100644 --- a/pulpcore/download/file.py +++ b/pulpcore/download/file.py @@ -57,7 +57,7 @@ async def _run(self, extra_data=None): break # the reading is done await self.handle_data(chunk) return DownloadResult( - path=self._path, + path=self.path, artifact_attributes=self.artifact_attributes, url=self.url, headers=None,