]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-5.4.7-no-seqid_init-on-rdonly-database.patch
- quiet -qa output, we're not interested in it here
[packages/rpm.git] / rpm-5.4.7-no-seqid_init-on-rdonly-database.patch
CommitLineData
70f8787d
JR
1--- rpm-5.4.7/rpmdb/db3.c.db_rdonly~ 2012-03-24 04:16:30.305949579 +0100
2+++ rpm-5.4.7/rpmdb/db3.c 2012-03-24 04:16:39.649962411 +0100
3@@ -2700,7 +2700,7 @@ assert(Pdbi != NULL);
4 if (oflags & (DB_CREATE|DB_TRUNCATE)) _flags |= DB_CREATE;
5 xx = db3associate(Pdbi, dbi, _callback, _flags);
6 }
7- if (dbi->dbi_seq_id) {
8+ if (dbi->dbi_seq_id && !(oflags & DB_RDONLY)) {
9 char * end = NULL;
10 uint32_t u = (uint32_t) strtoll(dbi->dbi_seq_id, &end, 0);
11
This page took 0.02399 seconds and 4 git commands to generate.