summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-28 05:39:27 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-28 05:39:27 +0000
commit2c5467f04601b3107777fe90d85af089cce1c6ac (patch)
treeb941fd9fb79944f956abfc7485839d44d1837efc /packages.py
parente6adfe57020e0c9be8e0f29f9f1a7b0ff625d7eb (diff)
downloadanaconda-2c5467f04601b3107777fe90d85af089cce1c6ac.tar.gz
anaconda-2c5467f04601b3107777fe90d85af089cce1c6ac.tar.xz
anaconda-2c5467f04601b3107777fe90d85af089cce1c6ac.zip
only do a rebuilddb on upgrades of systems which still have db 1.85 format databases
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index 5dddedcb7..9354b95ad 100644
--- a/packages.py
+++ b/packages.py
@@ -812,7 +812,7 @@ def doPostInstall(method, id, intf, instPath):
w.set(4)
- if upgrade:
+ if upgrade and id.dbpath is not None:
# move the rebuilt db into place.
try:
iutil.rmrf (instPath + "/var/lib/rpm.rpmsave")
@@ -836,6 +836,7 @@ def doPostInstall(method, id, intf, instPath):
except OSError:
pass
+ if upgrade:
# needed for prior systems which were not xinetd based
migrateXinetd(instPath, instLogName)