From 46de075bfad4665e6a1b05323eb766edc32cb497 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 5 Apr 2010 18:09:57 +0300 Subject: [PATCH] Unbreak --rebuilddb - managed to bust up the rebuilddb-path generation once again in commit 890cea56c91ff6ff887a439c036d345715e6c5c2, doh - make the intended logic more obviours --- lib/rpmdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 86c4dae..b6d6459 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -2848,7 +2848,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts, tfn = _free(tfn); tfn = rpmGetPath("%{?_dbpath_rebuild}", NULL); - if (!rstreq(tfn, "") && !rstreq(tfn, dbpath)) { + if (rstreq(tfn, "") || rstreq(tfn, dbpath)) { tfn = _free(tfn); rasprintf(&tfn, "%srebuilddb.%d", dbpath, (int) getpid()); nocleanup = 0; -- 2.7.4