summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-03-22 21:05:36 +0000
committerMatt Wilson <msw@redhat.com>2001-03-22 21:05:36 +0000
commitfd89d63b9ef6226300f0fe64a1ae8a7037c966c6 (patch)
treec3e75e32a2cc1804f822c07da2f027f13c3dd5e8 /todo.py
parent4b109b05fec7e11cd4cf644c2453875451578e39 (diff)
downloadanaconda-fd89d63b9ef6226300f0fe64a1ae8a7037c966c6.tar.gz
anaconda-fd89d63b9ef6226300f0fe64a1ae8a7037c966c6.tar.xz
anaconda-fd89d63b9ef6226300f0fe64a1ae8a7037c966c6.zip
don't traceback if we don't happen to have a package that causes dependency problems on upgrade (package on the system has the problem, not the package to be upgraded
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/todo.py b/todo.py
index 1c47b0caa..c8b23494a 100644
--- a/todo.py
+++ b/todo.py
@@ -1113,23 +1113,35 @@ class ToDo:
if deps:
for (who, dep) in deps:
if dep != _("no suggestion"):
- self.hdList[dep].select ()
+ try:
+ self.hdList[dep].select ()
+ except KeyError:
+ pass
def unselectDeps (self, deps):
if deps:
for (who, dep) in deps:
if dep != _("no suggestion"):
- self.hdList[dep].unselect ()
+ try:
+ self.hdList[dep].unselect ()
+ except KeyError:
+ pass
def selectDepCause (self, deps):
if deps:
for (who, dep) in deps:
- self.hdList[who].select ()
+ try:
+ self.hdList[who].select ()
+ except KeyError:
+ pass
def unselectDepCause (self, deps):
if deps:
for (who, dep) in deps:
- self.hdList[who].unselect ()
+ try:
+ self.hdList[who].unselect ()
+ except KeyError:
+ pass
def canResolveDeps (self, deps):
canresolve = 0