From 4e6170a75ecaf00cd41cc9eb29fdf3a709e4a5d8 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Mar 25 2013 11:35:40 +0000 Subject: Check if restorecon cmd exists and run it only if it does Resolves: #926934 --- diff --git a/abrt.spec b/abrt.spec index f84026e..45c6cbf 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: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Group: Applications/System URL: https://fedorahosted.org/abrt/ @@ -372,8 +372,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 @@ -748,6 +751,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_defaultdocdir}/%{name}-python-%{version}/examples/ %changelog +* Mon Mar 25 2013 Jakub Filak 2.1.2-3 +- Check if restorecon cmd exists and run it only if it does +- Resolves: #926934 + * Fri Mar 22 2013 Jakub Filak 2.1.2-2 - Require correct version of libreport - Add a patch for abrtd which ensures that the dump location always exists