[packages/rpm] - scriptlets to automate database upgrade
baggins
baggins at pld-linux.org
Sat Sep 15 17:44:16 CEST 2012
commit be4d303655cf0b384584d28de07749c04234c176
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Sep 15 17:42:55 2012 +0200
- scriptlets to automate database upgrade
rpm.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/rpm.spec b/rpm.spec
index 5285b8d..21a45ba 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -1106,6 +1106,15 @@ if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
mkdir %{_sysconfdir}/rpm/sysinfo
fi
+%posttrans
+if [ -e /var/lib/rpm/__convert_needed ]; then
+ %{_rpmlibdir}/bin/dbconvert --rebuilddb
+ %{__rm} -f /var/lib/rpm/__convert_needed
+fi
+
+%triggerpostun -- %{name} < 5.4.0-1
+:>/var/lib/rpm/__convert_needed
+
%triggerpostun -- %{name} < 4.4.9-44
%{_rpmlibdir}/hrmib-cache
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/be4d303655cf0b384584d28de07749c04234c176
More information about the pld-cvs-commit
mailing list