From 67d7133dc4307b238491dbd8476935ba52374910 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 24 Aug 2017 11:56:54 +0300 Subject: [PATCH] Remove ugly kludges from posttrans script, BDB handles this now Recent libdb handles environment version mismatch automatically and does a better job of it than we ever could, don't mess with it. Other than that, it hasn't been really doing it's alleged job in many years because first yum and then dnf started doing a separate verify step after the transaction which recreates the environment... --- rpm.spec | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/rpm.spec b/rpm.spec index d1c4eb7..5b2c571 100644 --- a/rpm.spec +++ b/rpm.spec @@ -37,7 +37,7 @@ Summary: The RPM package management system Name: rpm Version: %{rpmver} -Release: %{?snapver:0.%{snapver}.}6%{?dist} +Release: %{?snapver:0.%{snapver}.}7%{?dist} Group: System Environment/Base Url: http://www.rpm.org/ Source0: http://ftp.rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2 @@ -491,16 +491,6 @@ make check %post build-libs -p /sbin/ldconfig %postun build-libs -p /sbin/ldconfig -%posttrans -# XXX this is klunky and ugly, rpm itself should handle this -dbstat=/usr/lib/rpm/rpmdb_stat -if [ -x "$dbstat" ]; then - if "$dbstat" -e -h /var/lib/rpm 2>&1 | grep -q "doesn't match library version \| Invalid argument"; then - rm -f /var/lib/rpm/__db.* - fi -fi -exit 0 - %files -f %{name}.lang %license COPYING %doc CREDITS doc/manual/[a-z]* @@ -642,6 +632,9 @@ exit 0 %doc doc/librpm/html/* %changelog +* Thu Aug 24 2017 Panu Matilainen - 4.13.90-0.git14000.7 +- Remove ugly kludges from posttrans script, BDB handles this now + * Fri Aug 18 2017 Panu Matilainen - 4.13.90-0.git14000.6 - Silence harmless but bogus error message on noarch packages (#1482144)