Skip to content

Commit

Permalink
Fix files being deleted during file:// syncs
Browse files Browse the repository at this point in the history
closes #4681
  • Loading branch information
dralley authored and mdellweg committed Nov 15, 2023
1 parent 79bde3a commit b7ecc0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/4681.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix file:// syncs deleting the original files.
2 changes: 1 addition & 1 deletion pulpcore/download/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b7ecc0d

Please sign in to comment.