summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-17 01:28:30 +0000
committerMatt Wilson <msw@redhat.com>2000-01-17 01:28:30 +0000
commit4b4b1d1d2d07c5c07580cfefda9b7504f3daa80c (patch)
tree817e3b77931a04b18d2590cabcd53c2797ce43b2
parentdcb712de09e98cba99dd0b9d09bba6ac67bfbeb3 (diff)
downloadanaconda-4b4b1d1d2d07c5c07580cfefda9b7504f3daa80c.tar.gz
anaconda-4b4b1d1d2d07c5c07580cfefda9b7504f3daa80c.tar.xz
anaconda-4b4b1d1d2d07c5c07580cfefda9b7504f3daa80c.zip
use ondisk db to solve dependencies during upgrades
-rw-r--r--iw/dependencies.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/iw/dependencies.py b/iw/dependencies.py
index 62e2d119f..026fcbbf9 100644
--- a/iw/dependencies.py
+++ b/iw/dependencies.py
@@ -18,7 +18,14 @@ class UnresolvedDependenciesWindow (InstallWindow):
def getScreen (self):
threads_leave ()
- self.deps = self.todo.verifyDeps ()
+ # XXX fixme -- this is broken
+ if self.todo.upgrade:
+ import rpm
+ db = rpm.opendb (0, self.todo.instPath)
+ self.deps = self.todo.verifyDeps (self.todo.instPath, db)
+ del db
+ else:
+ self.deps = self.todo.verifyDeps ()
threads_enter ()
if not self.deps:
return None