Skip to content

Commit 9c0d79b

Browse files
committed
Fix files being deleted during file:// syncs
closes pulp#4681
1 parent 3837f6b commit 9c0d79b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES/4681.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix file:// syncs deleting the original files.

pulpcore/download/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def _run(self, extra_data=None):
5757
break # the reading is done
5858
await self.handle_data(chunk)
5959
return DownloadResult(
60-
path=self._path,
60+
path=self.path,
6161
artifact_attributes=self.artifact_attributes,
6262
url=self.url,
6363
headers=None,

0 commit comments

Comments
 (0)