diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-15 02:35:19 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-15 02:35:19 +0000 |
commit | b579701d64e2db517dd8c948b846a4bbed8b0ad1 (patch) | |
tree | 94b2e3c4beb73d02e39039a74638056a1a49b776 /todo.py | |
parent | 49531c8d9561aae82fdc6c9805ef5ff2ec69267a (diff) | |
download | anaconda-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.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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") |