Marcus Rueckert
43997482be
-> OBS-URL: https://build.opensuse.org/request/show/70563 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=128
14 lines
623 B
Diff
14 lines
623 B
Diff
Suppress berkeleydb error messages when doing 'rpm --verifydb'.
|
|
|
|
--- lib/rpmdb.c.orig 2011-05-12 14:08:07.000000000 +0000
|
|
+++ lib/rpmdb.c 2011-05-12 14:09:06.000000000 +0000
|
|
@@ -165,7 +165,7 @@ static dbiIndex rpmdbOpenIndex(rpmdb db,
|
|
uintId, uintCmp, NULL);
|
|
}
|
|
/* If primary got created, we can safely run without fsync */
|
|
- if ((dbiFlags(dbi) & DBI_CREATED) || db->cfg.db_no_fsync) {
|
|
+ if ((!verifyonly && (dbiFlags(dbi) & DBI_CREATED)) || db->cfg.db_no_fsync) {
|
|
rpmlog(RPMLOG_DEBUG, "disabling fsync on database\n");
|
|
db->cfg.db_no_fsync = 1;
|
|
dbSetFSync(db->db_dbenv, 0);
|