summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--upgrade.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/upgrade.py b/upgrade.py
index d54b11fe7..53013e317 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -293,6 +293,9 @@ def upgradeFindPackages(intf, method, id, instPath, dir):
rpm.addMacro("_dbpath", "/var/lib/rpm")
rpm.addMacro("_dbpath_rebuild", id.dbpath)
rpm.addMacro("_dbapi", "-1")
+ # have to make sure this isn't set, otherwise rpm won't even
+ # *try* to use old-format dbs
+ rpm.addMacro("__dbi_cdb", "")
rebuildpath = instPath + id.dbpath