Accepting request 511579 from GNOME:Next

File-triggers migration

OBS-URL: https://build.opensuse.org/request/show/511579
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk2?expand=0&rev=250
This commit is contained in:
Bjørn Lie 2017-07-20 11:38:22 +00:00 committed by Git OBS Bridge
parent 8d7ff7e108
commit 09a1733c9c
2 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Jun 27 12:26:52 UTC 2017 - dimstar@opensuse.org
- Migrate %icon_theme_cache_post/postun macro from
hicolor-icon-theme to gtk2-tools file triggers. Any package
installing icons below /usr/share/icons will trigger. Each
package will produce the cache for every icon theme being
updated. The same trigger is also added to gtk3-tools, where only
the one owning the current instance of
/usr/bin/gtk-update-icon-cache update-alternatie link actually
executes the update.
-------------------------------------------------------------------
Wed Jun 14 08:01:41 UTC 2017 - olaf@aepfle.de

View File

@ -446,6 +446,24 @@ fi
update-alternatives --install %{_bindir}/gtk-update-icon-cache gtk-update-icon-cache %{_bindir}/gtk-update-icon-cache-2.0 2 \
--slave %{_mandir}/man1/gtk-update-icon-cache.1.gz gtk-update-icon-cache.1.gz %{_mandir}/man1/gtk-update-icon-cache-2.0.1.gz
%filetriggerin tools -- %{_datadir}/icons
if [ "$(realpath %{_bindir}/gtk-update-icon-cache)" = "%{_bindir}/gtk-update-icon-cache-2.0" ]; then
for ICON_THEME in $(cut -d / -f 5 | sort -u); do
if [ -f "%{_datadir}/icons/${ICON_THEME}/index.theme" ]; then
%{_bindir}/gtk-update-icon-cache --quiet --force "%{_datadir}/icons/${ICON_THEME}"
fi
done
fi
%filetriggerpostun tools -- %{_datadir}/icons
if [ "$(realpath %{_bindir}/gtk-update-icon-cache)" = "%{_bindir}/gtk-update-icon-cache-2.0" ]; then
for ICON_THEME in $(cut -d / -f 5 | sort -u); do
if [ -f "%{_datadir}/icons/${ICON_THEME}/index.theme" ]; then
%{_bindir}/gtk-update-icon-cache --quiet --force "%{_datadir}/icons/${ICON_THEME}"
fi
done
fi
%if 0
# No need to call gtk-query-immodules-2.0 in postun:
# - if it's an upgrade, it will have been called in post