summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-05-26 20:21:49 +0000
committerMatt Wilson <msw@redhat.com>2000-05-26 20:21:49 +0000
commita6244e888dd48f92cdd685657f9f06238700d7a2 (patch)
tree1a008bbc2028f29142bf2024a034d2875a5f122f /todo.py
parent43c34cc6e7f5b14ec2eac7cccb2a7d2b4207b871 (diff)
downloadanaconda-a6244e888dd48f92cdd685657f9f06238700d7a2.tar.gz
anaconda-a6244e888dd48f92cdd685657f9f06238700d7a2.tar.xz
anaconda-a6244e888dd48f92cdd685657f9f06238700d7a2.zip
o use functions to turn packages on/off
o hack for upgrades (don't use cursors)
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/todo.py b/todo.py
index 9de4bf0a8..42682f425 100644
--- a/todo.py
+++ b/todo.py
@@ -639,13 +639,23 @@ class ToDo:
if deps:
for (who, dep) in deps:
if dep != _("no suggestion"):
- self.hdList[dep].selected = 1
+ self.hdList[dep].select ()
def unselectDeps (self, deps):
if deps:
for (who, dep) in deps:
if dep != _("no suggestion"):
- self.hdList[dep].selected = 0
+ self.hdList[dep].unselect ()
+
+ def selectDepCause (self, deps):
+ if deps:
+ for (who, dep) in deps:
+ self.hdList[who].select ()
+
+ def unselectDepCause (self, deps):
+ if deps:
+ for (who, dep) in deps:
+ self.hdList[who].unselect ()
def canResolveDeps (self, deps):
canresolve = 0
@@ -1168,6 +1178,7 @@ class ToDo:
# XXX in case we started out in Upgrade land, we need to
# reset this macro to point to the right place.
rpm.addMacro ("_dbpath", "%{_var}/lib/rpm")
+ rpm.addMacro ("_dbi_config", "hash perms=0644")
db = rpm.opendb(1, self.instPath)
ts = rpm.TransactionSet(self.instPath, db)