summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-15 02:35:19 +0000
committerMatt Wilson <msw@redhat.com>2000-02-15 02:35:19 +0000
commitb579701d64e2db517dd8c948b846a4bbed8b0ad1 (patch)
tree94b2e3c4beb73d02e39039a74638056a1a49b776 /todo.py
parent49531c8d9561aae82fdc6c9805ef5ff2ec69267a (diff)
downloadanaconda-b579701d64e2db517dd8c948b846a4bbed8b0ad1.tar.gz
anaconda-b579701d64e2db517dd8c948b846a4bbed8b0ad1.tar.xz
anaconda-b579701d64e2db517dd8c948b846a4bbed8b0ad1.zip
o only move the rpmdb once
o make back up of X symlink (prevents an error when installing on top of an existing install)
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/todo.py b/todo.py
index 8acbb4366..e75765d26 100644
--- a/todo.py
+++ b/todo.py
@@ -1062,7 +1062,7 @@ class ToDo:
self.fstab.mountFilesystems (self.instPath)
- if self.upgrade:
+ if self.upgrade and self.dbpath:
# move the rebuilt db into place.
os.rename (self.instPath + "/var/lib/rpm",
self.instPath + "/var/lib/rpm-old")
@@ -1070,6 +1070,8 @@ class ToDo:
self.instPath + "/var/lib/rpm")
rpm.addMacro ("_dbpath", "%{_var}/lib/rpm")
iutil.rmrf (self.instPath + "/var/lib/rpm-old")
+ # flag this so we only do it once.
+ self.dbpath = None
self.method.targetFstab (self.fstab)
@@ -1211,6 +1213,9 @@ class ToDo:
script.close()
os.chmod(self.instPath + "/etc/X11/X", 0755)
else:
+ if os.access (self.todo.instPath + "/etc/X11/X", os.R_OK):
+ os.rename (self.todo.instPath + "/etc/X11/X",
+ self.todo.instPath + "/etc/X11/X.rpmsave")
os.symlink ("../../usr/X11R6/bin/XF86_" + self.x.server,
self.instPath + "/etc/X11/X")
self.x.write (self.instPath + "/etc/X11/XF86Config")