FS#69152 - Pacman filesystem sync after extracting archives
Attached to Project:
Arch Linux
Opened by pale dega (paledega) - Thursday, 31 December 2020, 11:03 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 31 December 2020, 12:08 GMT
Opened by pale dega (paledega) - Thursday, 31 December 2020, 11:03 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 31 December 2020, 12:08 GMT
|
Details
When I install any package, pacman don't sync filesystem. We
need filesystem sync after extracting packages. Other
package managers has this feature.
I created a patch. --- ./lib/libalpm/util.c 2020-11-14 11:56:28.898950594 +0000 +++ ./lib/libalpm/util.c 2020-11-12 18:38:42.509009000 +0000 @@ -378,6 +378,7 @@ /* Extract the archive entry. */ int readret = archive_read_extract(archive, entry, 0); + sync(); if(readret == ARCHIVE_WARN) { /* operation succeeded but a non-critical error was encountered */ _alpm_log(handle, ALPM_LOG_WARNING, _("warning given when extracting %s (%s)\n"), |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Thursday, 31 December 2020, 12:08 GMT
Reason for closing: Duplicate
Additional comments about closing: Rejected in FS#38044
in favor of hooks.
Thursday, 31 December 2020, 12:08 GMT
Reason for closing: Duplicate
Additional comments about closing: Rejected in