summaryrefslogtreecommitdiff
path: root/rpmdb/tdbi.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-12-01 21:34:06 +0000
committerjbj <devnull@localhost>2002-12-01 21:34:06 +0000
commit80b23366e79f229831efb6a590c90e2724d37927 (patch)
treee62a5951bd28e84579d84d988e3546808dcd8df3 /rpmdb/tdbi.c
parent0efbbada0f3005d6f81a940ba7b06aef2703a50b (diff)
downloadrpm-80b23366e79f229831efb6a590c90e2724d37927.tar.gz
rpm-80b23366e79f229831efb6a590c90e2724d37927.tar.bz2
rpm-80b23366e79f229831efb6a590c90e2724d37927.zip
- use usrlib_LTLIBRARIES to install directly in /usr/lib64 instead.
CVS patchset: 5911 CVS date: 2002/12/01 21:34:06
Diffstat (limited to 'rpmdb/tdbi.c')
-rw-r--r--rpmdb/tdbi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/rpmdb/tdbi.c b/rpmdb/tdbi.c
index a7d2046a0..300817c6b 100644
--- a/rpmdb/tdbi.c
+++ b/rpmdb/tdbi.c
@@ -25,7 +25,12 @@ main(int argc, char *argv[])
exit (1);
}
- if ((rc = db->open(db, dbfile, NULL, DB_UNKNOWN, DB_RDONLY, 0664)) != 0) {
+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1)
+ rc = db->open(db, txnid, dbfile, NULL, DB_UNKNOWN, DB_RDONLY, 0664);
+#else
+ rc = db->open(db, dbfile, NULL, DB_UNKNOWN, DB_RDONLY, 0664);
+#endif
+ if (rc != 0) {
db->err(db, rc, "db->open");
if (!ec) ec = rc;
goto err;