From fe829acf274bc01de1ead23b8cd8333781e0ea69 Mon Sep 17 00:00:00 2001 From: Dan Čermák Date: Jun 13 2021 17:34:51 +0000 Subject: Swallow %preun and %posttrans scriptlet exit status --- diff --git a/emacs.spec b/emacs.spec index 42f12fe..c136893 100644 --- a/emacs.spec +++ b/emacs.spec @@ -5,7 +5,7 @@ Summary: GNU Emacs text editor Name: emacs Epoch: 1 Version: 27.2 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ and CC0-1.0 URL: http://www.gnu.org/software/emacs/ Source0: https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz @@ -399,33 +399,33 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata. desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop %preun -%{_sbindir}/alternatives --remove emacs %{_bindir}/emacs-%{version} +%{_sbindir}/alternatives --remove emacs %{_bindir}/emacs-%{version} || : %posttrans -%{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version} 80 +%{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version} 80 || : %preun lucid -%{_sbindir}/alternatives --remove emacs %{_bindir}/emacs-%{version}-lucid -%{_sbindir}/alternatives --remove emacs-lucid %{_bindir}/emacs-%{version}-lucid +%{_sbindir}/alternatives --remove emacs %{_bindir}/emacs-%{version}-lucid || : +%{_sbindir}/alternatives --remove emacs-lucid %{_bindir}/emacs-%{version}-lucid || : %posttrans lucid -%{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-lucid 70 -%{_sbindir}/alternatives --install %{_bindir}/emacs-lucid emacs-lucid %{_bindir}/emacs-%{version}-lucid 60 +%{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-lucid 70 || : +%{_sbindir}/alternatives --install %{_bindir}/emacs-lucid emacs-lucid %{_bindir}/emacs-%{version}-lucid 60 || : %preun nox -%{_sbindir}/alternatives --remove emacs %{_bindir}/emacs-%{version}-nox -%{_sbindir}/alternatives --remove emacs-nox %{_bindir}/emacs-%{version}-nox +%{_sbindir}/alternatives --remove emacs %{_bindir}/emacs-%{version}-nox || : +%{_sbindir}/alternatives --remove emacs-nox %{_bindir}/emacs-%{version}-nox || : %posttrans nox -%{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-nox 70 -%{_sbindir}/alternatives --install %{_bindir}/emacs-nox emacs-nox %{_bindir}/emacs-%{version}-nox 60 +%{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-nox 70 || : +%{_sbindir}/alternatives --install %{_bindir}/emacs-nox emacs-nox %{_bindir}/emacs-%{version}-nox 60 || : %preun common -%{_sbindir}/alternatives --remove emacs.etags %{_bindir}/etags.emacs +%{_sbindir}/alternatives --remove emacs.etags %{_bindir}/etags.emacs || : %posttrans common %{_sbindir}/alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \ - --slave %{_mandir}/man1/etags.1.gz emacs.etags.man %{_mandir}/man1/etags.emacs.1.gz + --slave %{_mandir}/man1/etags.1.gz emacs.etags.man %{_mandir}/man1/etags.emacs.1.gz || : %files %{_bindir}/emacs-%{version} @@ -483,6 +483,10 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop %{_includedir}/emacs-module.h %changelog +* Sun Jun 13 2021 Dan Čermák - 1:27.2-6 +- Swallow %%preun and %%posttrans scriptlet exit status +- Fixes rhbz#1962181 + * Sat Jun 5 2021 Peter Oliver - 1:27.2-5 - Validate AppStream metainfo.