summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-17 01:39:11 +0000
committerMatt Wilson <msw@redhat.com>2000-01-17 01:39:11 +0000
commit28e6f836b8dc16550486817b59f82d3f45177d2b (patch)
treea137a6f6a5979c8ef72e512b4b492f422c67eb80 /todo.py
parent3ad8ce199d792c7fa25009b224f8bfdbccca8d89 (diff)
downloadanaconda-28e6f836b8dc16550486817b59f82d3f45177d2b.tar.gz
anaconda-28e6f836b8dc16550486817b59f82d3f45177d2b.tar.xz
anaconda-28e6f836b8dc16550486817b59f82d3f45177d2b.zip
move this conditional code to todo
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/todo.py b/todo.py
index df8eb358e..e4fca4f9b 100644
--- a/todo.py
+++ b/todo.py
@@ -781,10 +781,11 @@ class ToDo:
out = open (self.instPath + "/etc/conf.modules", "a")
out.write (inf.read ())
- def verifyDeps (self, path = None, db = None):
+ def verifyDeps (self):
self.getCompsList()
- if path and db:
- ts = rpm.TransactionSet(path, db)
+ if self.upgrade:
+ db = rpm.opendb (self.instPath)
+ ts = rpm.TransactionSet(self.instPath, db)
else:
ts = rpm.TransactionSet()
@@ -930,7 +931,7 @@ class ToDo:
self.comps['GNOME'].items[package].selected = 1
# new package dependency fixup
- deps = self.verifyDeps (self.instPath, db)
+ deps = self.verifyDeps ()
del db
self.fstab.umountFilesystems (self.instPath)