summaryrefslogtreecommitdiff
path: root/lib/rpmdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpmdb.c')
-rw-r--r--lib/rpmdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c
index 63dc51b34..a738a1ec1 100644
--- a/lib/rpmdb.c
+++ b/lib/rpmdb.c
@@ -246,7 +246,9 @@ dbiIndex dbiOpen(rpmdb rpmdb, int rpmtag, unsigned int flags)
}
if (_dbapi <= 0) { /* failed to open with any dbapi */
- rpmError(RPMERR_DBOPEN, _("dbiOpen: cannot open %s index"),
+ static int _printed[32];
+ if (!_printed[dbix & 0x1f]++)
+ rpmError(RPMERR_DBOPEN, _("dbiOpen: cannot open %s index"),
tagName(rpmtag));
rc = 1;
} else /* suggest possible conversion */