Corrected inverted logic in %pre/%post scriptlets

Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
Al Stone 2018-05-22 11:18:36 -06:00
parent 8fee559e5d
commit 9b2688b5a1

View File

@ -1,6 +1,6 @@
Name: acpica-tools Name: acpica-tools
Version: 20180508 Version: 20180508
Release: 1%{?dist} Release: 2%{?dist}
Summary: ACPICA tools for the development and debug of ACPI tables Summary: ACPICA tools for the development and debug of ACPI tables
Group: Development/Languages Group: Development/Languages
@ -201,21 +201,21 @@ fi
cd .. cd ..
%pre %pre
if [ ! -e %{_bindir}/acpixtract-acpica ] if [ -e %{_bindir}/acpixtract-acpica ]
then then
alternatives --remove acpixtract %{_bindir}/acpixtract-acpica alternatives --remove acpixtract %{_bindir}/acpixtract-acpica
fi fi
if [ ! -e %{_bindir}/acpidump-acpica ] if [ -e %{_bindir}/acpidump-acpica ]
then then
alternatives --remove acpidump %{_bindir}/acpidump-acpica alternatives --remove acpidump %{_bindir}/acpidump-acpica
fi fi
%postun %postun
if [ ! -e %{_bindir}/acpixtract-acpica ] if [ -e %{_bindir}/acpixtract-acpica ]
then then
alternatives --remove acpixtract %{_bindir}/acpixtract-acpica alternatives --remove acpixtract %{_bindir}/acpixtract-acpica
fi fi
if [ ! -e %{_bindir}/acpidump-acpica ] if [ -e %{_bindir}/acpidump-acpica ]
then then
alternatives --remove acpidump %{_bindir}/acpidump-acpica alternatives --remove acpidump %{_bindir}/acpidump-acpica
fi fi
@ -229,6 +229,10 @@ fi
%changelog %changelog
* Tue May 22 2018 Al Stone <ahs3@redhat.com> - 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 <ahs3@redhat.com> - 20180508-1 * Tue May 15 2018 Al Stone <ahs3@redhat.com> - 20180508-1
- Update to 20180508 source tree, including patch refeshes. Closes BZ#1544048 - Update to 20180508 source tree, including patch refeshes. Closes BZ#1544048
- acpidump/acpixtract no longer have alternatives, so remove the scriptlets - acpidump/acpixtract no longer have alternatives, so remove the scriptlets