From 4657ef7c57f8b0bd7d1e05da2c108399b55a2821 Mon Sep 17 00:00:00 2001 From: Alexey Tourbin Date: Thu, 7 Aug 2008 03:25:28 +0400 Subject: [PATCH] rpmdb.c (openDatabase): removed db1-related part --- rpmdb/rpmdb.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c index 5227fc5..1b1b2a4 100644 --- a/rpmdb/rpmdb.c +++ b/rpmdb/rpmdb.c @@ -1045,32 +1045,6 @@ static int openDatabase(/*@null@*/ const char * prefix, if (minimal) goto exit; /*@switchbreak@*/ break; - case RPMTAG_BASENAMES: - { void * keyp = NULL; - DBC * dbcursor; - - /* We used to store the fileindexes as complete paths, rather then - plain basenames. Let's see which version we are... */ - /* - * XXX FIXME: db->fileindex can be NULL under pathological (e.g. mixed - * XXX db1/db2 linkage) conditions. - */ - if (justCheck) - /*@switchbreak@*/ break; - dbcursor = NULL; - xx = dbiCopen(dbi, &dbcursor, 0); - xx = dbiGet(dbi, dbcursor, &keyp, NULL, NULL, NULL, gflags); - if (xx == 0) { - const char * akey = keyp; - if (akey && strchr(akey, '/')) { - rpmError(RPMERR_OLDDB, _("old format database is present; " - "use --rebuilddb to generate a new format database\n")); - rc |= 1; - } - } - xx = dbiCclose(dbi, dbcursor, 0); - dbcursor = NULL; - } /*@switchbreak@*/ break; default: /*@switchbreak@*/ break; }