Corrected inverted logic in %pre/%post scriptlets
Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
parent
8fee559e5d
commit
9b2688b5a1
@ -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 <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
|
||||
- Update to 20180508 source tree, including patch refeshes. Closes BZ#1544048
|
||||
- acpidump/acpixtract no longer have alternatives, so remove the scriptlets
|
||||
|
Loading…
Reference in New Issue
Block a user