summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-17 01:42:21 +0000
committerMatt Wilson <msw@redhat.com>2000-01-17 01:42:21 +0000
commit34b45edc01ec7b52becaec6f0f41a51249cbf2a0 (patch)
tree2eb4dceb78aefba8d47c38a6b72cacf44eabede5 /todo.py
parent28e6f836b8dc16550486817b59f82d3f45177d2b (diff)
downloadanaconda-34b45edc01ec7b52becaec6f0f41a51249cbf2a0.tar.gz
anaconda-34b45edc01ec7b52becaec6f0f41a51249cbf2a0.tar.xz
anaconda-34b45edc01ec7b52becaec6f0f41a51249cbf2a0.zip
more upgrade deps checking - it's making me sick
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/todo.py b/todo.py
index e4fca4f9b..eecb16279 100644
--- a/todo.py
+++ b/todo.py
@@ -784,6 +784,7 @@ class ToDo:
def verifyDeps (self):
self.getCompsList()
if self.upgrade:
+ self.fstab.mountFilesystems (self.instPath)
db = rpm.opendb (self.instPath)
ts = rpm.TransactionSet(self.instPath, db)
else:
@@ -811,9 +812,11 @@ class ToDo:
sugname = _("no suggestion")
if not (name, sugname) in rc:
rc.append ((name, sugname))
- return rc
- else:
- return None
+
+ del db
+ del ts
+ self.fstab.umountFilesystems (self.instPath)
+ return rc
def selectDeps (self, deps):
if deps:
@@ -930,12 +933,12 @@ class ToDo:
self.log ("GNOME: Adding %s", package)
self.comps['GNOME'].items[package].selected = 1
- # new package dependency fixup
- deps = self.verifyDeps ()
del db
-
self.fstab.umountFilesystems (self.instPath)
+ # new package dependency fixup
+ deps = self.verifyDeps ()
+
for (name, suggest) in deps:
self.log ("Upgrade Dependency: %s needs %s, automatically added.", name, suggest)
self.selectDeps (deps)