Fix number check of test (builtin) in %pre scriptlet (boo#1197317)
OBS-URL: https://build.opensuse.org/package/show/server:mail/mailx?expand=0&rev=71
This commit is contained in:
parent
25850668bf
commit
2fc9076281
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 21 10:31:05 UTC 2022 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Fix number check of test (builtin) in %pre scriptlet (boo#1197317)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 17 21:22:49 UTC 2022 - Stefan Schubert <schubi@suse.de>
|
||||
|
||||
|
@ -172,9 +172,10 @@ if test ! -e %{_bindir}/mailx; then
|
||||
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mailx
|
||||
fi
|
||||
%else
|
||||
|
||||
%pre
|
||||
# removing old update-alternatives entries
|
||||
if [ "$1" > 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
|
||||
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
|
||||
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mailx
|
||||
fi
|
||||
%endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user