public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Adam Williamson <awilliam@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/transmission] epel10: update scriptlets to match current guidelines
Date: Mon, 20 Jul 2026 20:37:13 GMT	[thread overview]
Message-ID: <178457983396.1.10478617743234789595.rpms-transmission-e883518d60e3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/transmission
Branch : epel10
Commit : e883518d60e336f8ffcae1476bc32f94337ca7e0
Author : Adam Williamson <awilliam@redhat.com>
Date   : 2013-05-10T14:17:30-07:00
Stats  : +15/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/transmission/c/e883518d60e336f8ffcae1476bc32f94337ca7e0?branch=epel10

Log:
update scriptlets to match current guidelines

---
diff --git a/transmission.spec b/transmission.spec
index 7e0c9ff..27a0810 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -124,13 +124,13 @@ desktop-file-install \
                 
 
 %post common
-touch --no-create %{_datadir}/icons/hicolor || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %post gtk
-update-desktop-database > /dev/null 2>&1 || :
+/usr/bin/update-desktop-database &> /dev/null || :
 
 %post qt
-update-desktop-database > /dev/null 2>&1 || :
+/usr/bin/update-desktop-database &> /dev/null || :
 
 %post daemon
 %systemd_post transmission-daemon.service
@@ -138,17 +138,23 @@ update-desktop-database > /dev/null 2>&1 || :
 %preun daemon
 %systemd_preun transmission-daemon.service
 
+%postun common
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
 %postun daemon
 %systemd_postun_with_restart transmission-daemon.service 
 
 %postun gtk
-update-desktop-database > /dev/null 2>&1 || :
+/usr/bin/update-desktop-database &> /dev/null || :
 
 %postun qt
-update-desktop-database > /dev/null 2>&1 || :
+/usr/bin/update-desktop-database &> /dev/null || :
 
 %posttrans common
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %files 
 
@@ -187,6 +193,9 @@ update-desktop-database > /dev/null 2>&1 || :
 %doc %{_mandir}/man1/transmission-qt.*
 
 %changelog
+* Fri May 10 2013 Adam Williamson <awilliam@redhat.com>
+- update scriptlets to match current guidelines
+
 * Mon Apr 22 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 2.77-3
 - use hardened build macro and enable fPIC for Qt build. resolves rhbz#955268
 

                 reply	other threads:[~2026-07-20 20:37 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=178457983396.1.10478617743234789595.rpms-transmission-e883518d60e3@fedoraproject.org \
    --to=awilliam@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