Accepting request 869222 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/869222 OBS-URL: https://build.opensuse.org/package/show/Base:System/mawk?expand=0&rev=26
This commit is contained in:
parent
cbc01e893a
commit
56dd04e32d
@ -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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 16 08:19:25 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package mawk
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2010 Guido Berhoerster.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -83,8 +83,8 @@ make %{?_smp_mflags} check
|
||||
%endif
|
||||
--slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} %{_mandir}/man1/mawk.1%{?ext_man}
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/mawk ]; then
|
||||
%{_sbindir}/update-alternatives --remove awk %{_bindir}/mawk
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user