From 9b2688b5a15d3a77e5bdb5251ba8f5bc05016057 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Tue, 22 May 2018 11:18:36 -0600 Subject: [PATCH] Corrected inverted logic in %pre/%post scriptlets Signed-off-by: Al Stone --- acpica-tools.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/acpica-tools.spec b/acpica-tools.spec index f545658..f127375 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -1,6 +1,6 @@ Name: acpica-tools Version: 20180508 -Release: 1%{?dist} +Release: 2%{?dist} Summary: ACPICA tools for the development and debug of ACPI tables Group: Development/Languages @@ -201,21 +201,21 @@ fi cd .. %pre -if [ ! -e %{_bindir}/acpixtract-acpica ] +if [ -e %{_bindir}/acpixtract-acpica ] then alternatives --remove acpixtract %{_bindir}/acpixtract-acpica fi -if [ ! -e %{_bindir}/acpidump-acpica ] +if [ -e %{_bindir}/acpidump-acpica ] then alternatives --remove acpidump %{_bindir}/acpidump-acpica fi %postun -if [ ! -e %{_bindir}/acpixtract-acpica ] +if [ -e %{_bindir}/acpixtract-acpica ] then alternatives --remove acpixtract %{_bindir}/acpixtract-acpica fi -if [ ! -e %{_bindir}/acpidump-acpica ] +if [ -e %{_bindir}/acpidump-acpica ] then alternatives --remove acpidump %{_bindir}/acpidump-acpica fi @@ -229,6 +229,10 @@ fi %changelog +* Tue May 22 2018 Al Stone - 20180508-2 +- %%pre and %%post scriptlets fail -- stupid thinko where I inadvertently + tested for alternatives not existing, vs existing + * Tue May 15 2018 Al Stone - 20180508-1 - Update to 20180508 source tree, including patch refeshes. Closes BZ#1544048 - acpidump/acpixtract no longer have alternatives, so remove the scriptlets