public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Christopher Aillon <caillon@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/abrt] update-2.17.9-f44: Update icon cache scriptlet per packaging guidelines
Date: Mon, 03 Aug 2026 11:03:23 GMT	[thread overview]
Message-ID: <178575500324.1.1533276813075841243.rpms-abrt-1a8f58d7cc26@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/abrt
            Branch : update-2.17.9-f44
            Commit : 1a8f58d7cc2697c23881109a41bcea5bea94bab3
            Author : Christopher Aillon <caillon@redhat.com>
            Date   : 2011-05-06T15:35:10-07:00
            Stats  : +11/-9 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/abrt/c/1a8f58d7cc2697c23881109a41bcea5bea94bab3?branch=update-2.17.9-f44

            Log:
            Update icon cache scriptlet per packaging guidelines

See http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache

---
diff --git a/abrt.spec b/abrt.spec
index a77833c..f90d0a9 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -10,7 +10,7 @@
 Summary: Automatic bug detection and reporting tool
 Name: abrt
 Version: 2.0.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 Group: Applications/System
 URL: https://fedorahosted.org/abrt/
@@ -403,20 +403,16 @@ fi
 %endif
 
 %post gui
-# update icon cache
-touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %post libs -p /sbin/ldconfig
 
 %postun libs -p /sbin/ldconfig
 
 %postun gui
-touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
 
 %posttrans
@@ -458,6 +454,9 @@ if [ "$1" -eq "0" ]; then
 fi
 %endif
 
+%posttrans gui
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc README COPYING
@@ -646,6 +645,9 @@ fi
 %{_infodir}/abrt-retrace-server*
 
 %changelog
+* Fri May 06 2011 Christopher Aillon <caillon@redhat.com> - 2.0.2-3
+- Update icon cache scriptlet per packaging guidelines
+
 * Fri May 06 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.2-2
 - flush messages in retrace client
 

                 reply	other threads:[~2026-08-03 11:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178575500324.1.1533276813075841243.rpms-abrt-1a8f58d7cc26@fedoraproject.org \
    --to=caillon@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox