diff options
author | Matt Wilson <msw@redhat.com> | 2000-05-26 20:21:49 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-05-26 20:21:49 +0000 |
commit | a6244e888dd48f92cdd685657f9f06238700d7a2 (patch) | |
tree | 1a008bbc2028f29142bf2024a034d2875a5f122f /todo.py | |
parent | 43c34cc6e7f5b14ec2eac7cccb2a7d2b4207b871 (diff) | |
download | anaconda-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.py | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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) |