diff options
author | Matt Wilson <msw@redhat.com> | 2000-01-17 01:39:11 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-01-17 01:39:11 +0000 |
commit | 28e6f836b8dc16550486817b59f82d3f45177d2b (patch) | |
tree | a137a6f6a5979c8ef72e512b4b492f422c67eb80 /todo.py | |
parent | 3ad8ce199d792c7fa25009b224f8bfdbccca8d89 (diff) | |
download | anaconda-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.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |