From 79e3a30f8b04504e5a129737e57d63f77d84c36a456f18ada7893bc4561dcfc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Schr=C3=B6der?= Date: Thu, 7 Jan 2021 10:29:16 +0000 Subject: [PATCH] ... OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=567 --- ndbglue.diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ndbglue.diff b/ndbglue.diff index 4daf4b0..7ced6df 100644 --- a/ndbglue.diff +++ b/ndbglue.diff @@ -1,5 +1,5 @@ --- ./lib/backend/ndb/glue.c.orig 2021-01-05 15:36:03.097744355 +0000 -+++ ./lib/backend/ndb/glue.c 2021-01-07 10:23:41.113114258 +0000 ++++ ./lib/backend/ndb/glue.c 2021-01-07 10:28:58.656228804 +0000 @@ -311,12 +311,13 @@ static void setdata(dbiCursor dbc, unsi static rpmRC ndb_pkgdbPut(dbiIndex dbi, dbiCursor dbc, unsigned int *hdrNum, unsigned char *hdrBlob, unsigned int hdrLen) @@ -32,7 +32,7 @@ + struct ndbEnv_s *ndbenv = dbc->dbi->dbi_rpmdb->db_dbenv; dbc->hdrNum = 0; - setdata(dbc, 0, 0, 0); -+ if (ndbenv->hdrNum == hnum) ++ if (ndbenv->hdrNum == hdrNum) + setdata(dbc, 0, 0, 0); return rpmpkgDel(dbc->dbi->dbi_db, hdrNum); }