You are not logged in.
Hi there! Can someone help me with that? Last updates with pacman -Syu make too long update MIME database. Sometimes it takes 2 minutes or bigger when I update only one package. Idk how fix this. I was try this methot but it did not help me.
Last edited by snap.ve (2020-05-17 11:31:27)
Offline
The cause is that /usr/bin/update-mime-databse in new shared-mime-info runs fdatasync() after writing each file. [1] If you are ABSOLUTELY sure that no power failure will occur during the process, you can create a file /etc/pacman.d/hooks/update-mime-database.hook
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/mime/packages/*.xml
[Action]
Description = Updating the MIME type database...
When = PostTransaction
Exec = /usr/bin/env PKGSYSTEM_ENABLE_FSYNC=0 /usr/bin/update-mime-database /usr/share/mime
Offline
The cause is that /usr/bin/update-mime-databse in new shared-mime-info runs fdatasync() after writing each file. [1] If you are ABSOLUTELY sure that no power failure will occur during the process, you can create a file /etc/pacman.d/hooks/update-mime-database.hook
[Trigger] Type = Path Operation = Install Operation = Upgrade Operation = Remove Target = usr/share/mime/packages/*.xml [Action] Description = Updating the MIME type database... When = PostTransaction Exec = /usr/bin/env PKGSYSTEM_ENABLE_FSYNC=0 /usr/bin/update-mime-database /usr/share/mime
Yes! It work's thank you,but... Really there will be no update with a fix? This is a pretty serious bug.
Last edited by snap.ve (2020-05-17 11:04:34)
Offline
It turns out to be a regression in package shared-mime-info. I created https://bugs.archlinux.org/task/66687 for that.
Offline
Oh, thank you
Offline