From 41b6ae215ec1402bec739d4989937e976548c7228d1cf593cc11adb74d68fcca Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 12 Mar 2015 11:00:53 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=172 --- emacs.changes | 5 +++++ emacs.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/emacs.changes b/emacs.changes index 0595017..a3411f8 100644 --- a/emacs.changes +++ b/emacs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 12 10:58:34 UTC 2015 - werner@suse.de + +- Move deinstall of info files from %postun to %preun (boo#921948) + ------------------------------------------------------------------- Tue Feb 24 07:08:48 UTC 2015 - meissner@suse.com diff --git a/emacs.spec b/emacs.spec index 4bd0506..5bdd43b 100644 --- a/emacs.spec +++ b/emacs.spec @@ -1,7 +1,7 @@ # # spec file for package emacs # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -185,7 +185,7 @@ files are pre-byte compiled and therefore not necessary. Summary: Info files for GNU Emacs Group: Productivity/Editors/Emacs Requires(post): %install_info_prereq -Requires(postun): %install_info_prereq +Requires(preun): %install_info_prereq %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif @@ -607,7 +607,7 @@ for f in %info_files; do %install_info --info-dir=%{_infodir} "%{_infodir}/$f.gz" done -%postun info +%preun info for f in %info_files; do test -e "$f" || f="${f}.info" %install_info_delete --info-dir=%{_infodir} "%{_infodir}/$f.gz"