diff --git a/shared-mime-info.changes b/shared-mime-info.changes index 4242af8..5886ed5 100644 --- a/shared-mime-info.changes +++ b/shared-mime-info.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 25 15:07:27 UTC 2024 - Michael Gorse + +- Uninstall silently if update-mime-database is not present + (bsc#1231463). + ------------------------------------------------------------------- Mon Feb 12 23:45:56 UTC 2024 - Michael Gorse diff --git a/shared-mime-info.spec b/shared-mime-info.spec index 88f3bf6..ddeefa3 100644 --- a/shared-mime-info.spec +++ b/shared-mime-info.spec @@ -82,7 +82,8 @@ export PKGSYSTEM_ENABLE_FSYNC=0 %filetriggerpostun -- %{_datadir}/mime export PKGSYSTEM_ENABLE_FSYNC=0 -[ -x %{_bindir}/update-mime-database ] && %{_bindir}/update-mime-database "%{_datadir}/mime" +[ -x %{_bindir}/update-mime-database ] || exit 0 +%{_bindir}/update-mime-database "%{_datadir}/mime" %files %license COPYING