From 8bed0f2480ab6d0dc3c697dfd7ade7f8d008226e Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mon, 9 Jan 2023 23:54:02 +0100 Subject: [PATCH] Drop rpm scriptlets for things that are handled by rpm file triggers update-desktop-database and gtk-update-icon-cache are both handled by file triggers in desktop-file-utils and hicolor-icon-theme packages these days and there is no need to invoke them manually in individual packages any more. --- firefox.spec | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/firefox.spec b/firefox.spec index 22a5e94..af584c6 100644 --- a/firefox.spec +++ b/firefox.spec @@ -1015,20 +1015,6 @@ if [ $1 -eq 0 ]; then rm -rf %{langpackdir} fi -%post -update-desktop-database &> /dev/null || : -touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - -%postun -update-desktop-database &> /dev/null || : -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - -%posttrans -gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - %if %{with langpacks_subpkg} %files %else