Hello community, here is the log from the commit of package gtk2 for openSUSE:Factory checked in at 2017-07-24 12:30:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gtk2 (Old) and /work/SRC/openSUSE:Factory/.gtk2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gtk2" Mon Jul 24 12:30:48 2017 rev:160 rq:511631 version:2.24.31 Changes: -------- --- /work/SRC/openSUSE:Factory/gtk2/gtk2.changes 2017-07-17 08:59:44.380420774 +0200 +++ /work/SRC/openSUSE:Factory/.gtk2.new/gtk2.changes 2017-07-24 12:30:50.234946626 +0200 @@ -1,0 +2,12 @@ +Tue Jun 27 12:26:52 UTC 2017 - [email protected] + +- 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. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gtk2.spec ++++++ --- /var/tmp/diff_new_pack.FyR1LC/_old 2017-07-24 12:30:51.382784586 +0200 +++ /var/tmp/diff_new_pack.FyR1LC/_new 2017-07-24 12:30:51.386784022 +0200 @@ -446,6 +446,24 @@ 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
