1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-12 21:58:50 +01:00

* gnupg.spec.in: Make sure that install-info is called in such a way that

doesn't bork the RPM install if it cannot complete (necessary for some
upgrade scenarios).
This commit is contained in:
David Shaw 2003-08-03 00:43:29 +00:00
parent 1b5d5c7ecb
commit f3a7f5e573
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2003-08-01 David Shaw <dshaw@jabberwocky.com>
* gnupg.spec.in: Make sure that install-info is called in such a
way that doesn't bork the RPM install if it cannot complete
(necessary for some upgrade scenarios).
2003-07-31 David Shaw <dshaw@jabberwocky.com>
* gnupg.spec.in: Rework much of the spec to use %-macros

View File

@ -184,13 +184,15 @@ rm %{buildroot}%{_infodir}/dir
%attr (0755,root,root) %{_libexecdir}/*
%post
/sbin/install-info %{_infodir}/gpg.info %{_infodir}/dir
/sbin/install-info %{_infodir}/gpgv.info %{_infodir}/dir
/sbin/install-info %{_infodir}/gpg.info %{_infodir}/dir 2>/dev/null || :
/sbin/install-info %{_infodir}/gpgv.info %{_infodir}/dir 2>/dev/null || :
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/gpg.info %{_infodir}/dir
/sbin/install-info --delete %{_infodir}/gpgv.info %{_infodir}/dir
/sbin/install-info --delete %{_infodir}/gpg.info \
%{_infodir}/dir 2>/dev/null || :
/sbin/install-info --delete %{_infodir}/gpgv.info \
%{_infodir}/dir 2>/dev/null || :
fi
%clean