SHA256
3
0
forked from pool/gawk

Accepting request 869221 from home:lnussel:usrmove

- fix update-alternatives usage. Needs to be in %postun according to
  https://en.opensuse.org/openSUSE:Packaging_Multiple_Version_guidelines#update-alternatives_mechanism

OBS-URL: https://build.opensuse.org/request/show/869221
OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=82
This commit is contained in:
Dirk Mueller 2021-02-05 15:24:02 +00:00 committed by Git OBS Bridge
parent d23e4f7b39
commit 7b533d5cf6
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 4 10:41:36 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- fix update-alternatives usage. Needs to be in %postun according to
https://en.opensuse.org/openSUSE:Packaging_Multiple_Version_guidelines#update-alternatives_mechanism
-------------------------------------------------------------------
Mon Dec 14 16:06:16 UTC 2020 - Ludwig Nussel <lnussel@suse.de>

View File

@ -89,8 +89,8 @@ ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} %{buildroot}%{_mandir}/man1/a
--slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} %{_mandir}/man1/gawk.1%{?ext_man}
%endif
%preun
if [ $1 -eq 0 ]; then
%postun
if [ ! -f %{_bindir}/gawk ]; then
%{_sbindir}/update-alternatives --remove awk %{_bindir}/gawk
fi