FS#5830 - pacman should automatically redownload missing package files
Attached to Project:
Pacman
Opened by Scott H (stonecrest) - Tuesday, 14 November 2006, 04:51 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 23 March 2011, 15:39 GMT
Opened by Scott H (stonecrest) - Tuesday, 14 November 2006, 04:51 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 23 March 2011, 15:39 GMT
|
Details
Users can sometimes encounter issues where pacman errors out
because it cannot find, e.g., /var/lib/pacman/foo/depends -
it would be nice if pacman recognized this and redownloaded
the necessary file.
I'm not sure if there are any other possible corruptions or missing files that can be detected and fixed, but this sort of thing is really helpful for the end user. |
This task depends upon
Closed by Dan McGee (toofishes)
Wednesday, 23 March 2011, 15:39 GMT
Reason for closing: Won't fix
Additional comments about closing: This is ooooooold...
Wednesday, 23 March 2011, 15:39 GMT
Reason for closing: Won't fix
Additional comments about closing: This is ooooooold...
Yes, but in the case where you have foo installed on your system, this 'fools' pacman into thinking foo is no longer present. If you have foo installed, and pacman says it can't find /var/lib/pacman/local/foo/depends, then force-reinstall foo:
pacman -Sf foo
It might be best just to warn like so:
------8<-----------
WARNING: An installed package has been found with a corrupt database entry
Please reinstall this package to fix the corrupt entry
error: package 'foo' is corrupt, removing from package cache
------>8-----------
http://bbs.archlinux.org/viewtopic.php?pid=283117
The simple fact is, we apparently don't find this super critical at the moment. If *you* do, go ahead and send us a patch. I even have a comment in the code on HOW and WHERE to do it.
There are probably other ways to interrupt it though. Maybe when the filesystem is full also.
But I suppose this shouldn't happen too frequently.