public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Aurelien Bompard <abompard@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/amarok] epel10.2: improve scriptlets
Date: Mon, 06 Jul 2026 18:29:40 GMT	[thread overview]
Message-ID: <178336258049.1.14824185598470733485.rpms-amarok-22a64de6c305@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/amarok
Branch : epel10.2
Commit : 22a64de6c3051d6939e2d4564c26d141b717acbd
Author : Aurelien Bompard <abompard@fedoraproject.org>
Date   : 2005-08-26T13:08:01+00:00
Stats  : +5/-5 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/amarok/c/22a64de6c3051d6939e2d4564c26d141b717acbd?branch=epel10.2

Log:
improve scriptlets

---
diff --git a/amarok.spec b/amarok.spec
index b2d079b..a03734c 100644
--- a/amarok.spec
+++ b/amarok.spec
@@ -152,18 +152,18 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/applications/kde/amarokapp.desktop
 %post
 /sbin/ldconfig
 # update icon themes if necessary
-if [ -x /usr/bin/gtk-update-icon-cache ]; then
-    /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || :
     # needed because amarok 1.2 puts icon in hicolor
     # and the RPM did not update the cache on uninstall
-    /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
 fi
 
 %postun
 /sbin/ldconfig
 # update icon themes if necessary
-if [ -x /usr/bin/gtk-update-icon-cache ]; then
-    /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || :
 fi
 
 

                 reply	other threads:[~2026-07-06 18:29 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=178336258049.1.14824185598470733485.rpms-amarok-22a64de6c305@fedoraproject.org \
    --to=abompard@fedoraproject.org \
    --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