OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 23-Aug-2003 23:57:58
Branch: OPENPKG_UPGRADE_RPM42 Handle: 2003082322575800
Modified files: (Branch: OPENPKG_UPGRADE_RPM42)
openpkg-src/openpkg openpkg.spec
Log:
install OpenPKG OpenPGP public key also on upgrades
Summary:
Revision Changes Path
1.192.2.13 +8 -0 openpkg-src/openpkg/openpkg.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/openpkg/openpkg.spec
============================================================================
$ cvs diff -u -r1.192.2.12 -r1.192.2.13 openpkg.spec
--- openpkg-src/openpkg/openpkg.spec 23 Aug 2003 20:54:50 -0000 1.192.2.12
+++ openpkg-src/openpkg/openpkg.spec 23 Aug 2003 21:57:58 -0000 1.192.2.13
@@ -1451,6 +1451,14 @@
fi
%post
+ # On upgrades (especially from OpenPKG 1.2 or earlier), make
+ # sure the OpenPKG OpenPGP public key is available to RPM for
+ # out-of-the-box package signature verification.
+ if [ ".$1" = .2 ]; then
+ %{l_prefix}/bin/rpm -q gpg-pubkey-63c4cb9f-3c591eda >/dev/null 2>&1 || \
+ %{l_prefix}/bin/rpm --import %{l_prefix}/etc/openpkg/openpkg.pgp
+ fi
+
# Finally, rebuild the RPM database with the newly installed RPM
# program on upgrades. Because of RPM internal database locking we
# have to play a little trick here and delay the operation until RPM
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]