Description of problem:
Installing large update which delivers updates to the MIME INFO database
runs this program multiple times during the "cleanup" phase -- when one
execution would be enough.
Version-Release number of selected component (if applicable):
Every time KDE or similar system library is updated
Every module seem to want to run this at cleanup phase.
Single run of the /bin/update-mime-database program takes
quite a lot of time -- order of minutes -- and it is run multiple
times during the update.
A possible way to handle this could be similar to how YUM watches the RPM database, and is able to note to the admin that "something has changed in
the database without yum being in action." (Whatever that text was.)
Read source files, read destination directories, compare time stamps -- if source has more recent modifications, then do the actual update. (Plus detail of how it can detect removal of source files..)
See bug #1052173
Which includes a workaround, otherwise, the optmization to run the scriptlet only once per transaction will land only for fedora 21 (and newer)
*** This bug has been marked as a duplicate of bug 1052173 ***