]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
stop INSANE delay
authorTomasz Pala <gotar@pld-linux.org>
Wed, 24 Aug 2016 00:21:45 +0000 (02:21 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 24 Aug 2016 07:17:12 +0000 (10:17 +0300)
If this update-mime-database corrupts data cache, let them fix their crappy
code, until then it's not worth to introduce ~minute updates for
recreatable data, this is not an RDBMS.

rpm.macros

index 93807bacb96d12f10cfc96f6abca6cfc4489f2e0..7edf4cf144ecc98e8e0d54df330d5049e4b2c678 100644 (file)
@@ -807,9 +807,15 @@ fi; \
 #-----------------------------------------------------------------
 # Update shared MIME info database
 # requires: shared-mime-info
+# Note:        https://bugs.freedesktop.org/show_bug.cgi?id=70366#c19
+#      https://bugzilla.redhat.com/show_bug.cgi?id=1052173
+# TODO:        if you want this running with fdatasync(), make sure it's:
+#      1. announcing ~minute delay by echoing appropriate message,
+#      2. running only once after rpm transaction.
 #
 %update_mime_database() {{ \
        umask 022; \
+       PKGSYSTEM_ENABLE_FSYNC=0 \\\
        /usr/bin/update-mime-database %{_datadir}/mime; \
 };} \
 %{nil}
This page took 0.112918 seconds and 4 git commands to generate.