public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jakub Filak <jfilak@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/abrt] update-2.17.9-f44: Check if restorecon cmd exists and run it only if it does
Date: Mon, 03 Aug 2026 11:03:54 GMT	[thread overview]
Message-ID: <178575503489.1.3523772787893141266.rpms-abrt-802131f4acd6@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/abrt
            Branch : update-2.17.9-f44
            Commit : 802131f4acd69ec842e51063955b4761ffa8c62e
            Author : Jakub Filak <jfilak@redhat.com>
            Date   : 2013-03-25T12:33:45+01:00
            Stats  : +9/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/abrt/c/802131f4acd69ec842e51063955b4761ffa8c62e?branch=update-2.17.9-f44

            Log:
            Check if restorecon cmd exists and run it only if it does

Resolves: #926934

---
diff --git a/abrt.spec b/abrt.spec
index 44fad6c..b8599be 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -25,7 +25,7 @@
 Summary: Automatic bug detection and reporting tool
 Name: abrt
 Version: 2.1.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2+
 Group: Applications/System
 URL: https://fedorahosted.org/abrt/
@@ -375,8 +375,11 @@ then
         fi
     done
 fi
+
 # doesn't mather if it fails or not for any reason
-restorecon -R "$NEW_LOCATION" || true
+if which restorecon 1>/dev/null 2>&1; then
+    restorecon -R "$NEW_LOCATION" 1>/dev/null 2>&1 || true
+fi
 exit 0
 
 %post
@@ -751,6 +754,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_defaultdocdir}/%{name}-python-%{version}/examples/
 
 %changelog
+* Mon Mar 25 2013 Jakub Filak <jfilak@redhat.com> 2.1.2-4
+- Check if restorecon cmd exists and run it only if it does
+- Resolves: #926934
+
 * Fri Mar 22 2013 Jakub Filak <jfilak@redhat.com> 2.1.2-3
 - Fix problems with spaces 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=178575503489.1.3523772787893141266.rpms-abrt-802131f4acd6@fedoraproject.org \
    --to=jfilak@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