File deadlock.diff of Package rpm

--- lib/transaction.c.orig	2022-08-31 15:17:28.919733941 +0000
+++ lib/transaction.c	2022-08-31 15:18:47.275605315 +0000
@@ -1460,6 +1460,8 @@ int rpmtsRun(rpmts ts, rpmps okProbs, rp
 
     /* If we are in test mode, then there's no need for transaction lock. */
     if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_TEST)) {
+	if (ts->rdb != NULL && ts->dbmode != (O_RDWR|O_CREAT))
+	    (void) rpmtsCloseDB(ts);
 	if (!(lock = rpmtsAcquireLock(ts))) {
 	    goto exit;
 	}
openSUSE Build Service is sponsored by