Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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.

Loading...