-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNF5 always removes partially downloaded files when interrupted, so you cannot resume downloading them #293
Comments
Hi, I've been testing the described issue on my local machine, and it appears to be related to the The issue lies in how
Upon comparing this behavior to DNF4, I observed that it behaves similarly, just with different output. |
I wasn't investigating deeply why the file is removed when |
TBH, I hope DNF5 doesn't try to replicate bad behaviors from DNF4 :P Although, I agree it depends on how you interpret Ctrl+C: Cancel vs Interrupt. But, if the current behavior is retains, so we should either terminate DNF5 by other means or hope it'll terminate by itself upon timeout/...? And, does it mean that if DNF has downloaded a number of packages and you press Ctrl+C, it'll remove all of them? Not sure that's what a user expects 🤔 |
I've just done preliminary analysis of the issue, but I don't think that the current behavior is good. It should be fixed.
No, pressing Ctrl+C while downloading packages will only remove the package currently being downloaded, but not those that have already finished downloading. |
Sure, thanks :)
Good. Because I thought maybe the decision was made that when you press Ctrl+C, you want to cancel the operation. In that case, other package should have been removed. Since they are not removed, I can safely assume that retaining partial file is also OK. |
Another use case that should be covered when fixing this: rpm-software-management/dnf#2051 (comment). |
I thought this issue was fixed, but apparently not. |
I tried both running
dnf5 install ...
anddnf5 download ...
in Fedora 39, and interrupting them in the middle of downloading a large package. Upon interruption, the partially downloaded file is removed. Hence, you cannot resume downloading the package. I tried also addingkeepcache
option, but it has no effect.Effectively, DNF5 doesn't have support for resume functionality right now.
The text was updated successfully, but these errors were encountered: