summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-05-01 16:44:05 +0000
committerMatt Wilson <msw@redhat.com>2000-05-01 16:44:05 +0000
commit728eb92b114b0ed7f25d861524457f107648fe68 (patch)
tree13b49464c4dbe5c306588b7f036d72502222272c /todo.py
parent9df5ebdc99fe213479d9953474c388942702d410 (diff)
downloadanaconda-728eb92b114b0ed7f25d861524457f107648fe68.tar.gz
anaconda-728eb92b114b0ed7f25d861524457f107648fe68.tar.xz
anaconda-728eb92b114b0ed7f25d861524457f107648fe68.zip
remove conflicting packages from upgrade set
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/todo.py b/todo.py
index f20247cc4..1b6f2ead9 100644
--- a/todo.py
+++ b/todo.py
@@ -644,6 +644,13 @@ class ToDo:
sugname = _("no suggestion")
if not (name, sugname) in rc:
rc.append ((name, sugname))
+ elif sense == rpm.RPMDEP_SENSE_CONFLICTS:
+ self.log ("%s-%s-%s conflicts with to-be-installed "
+ "package %s, removing from set",
+ name, version, release, reqname)
+ if self.hdList.packages.has_key (reqname):
+ self.hdList.packages[reqname].selected = 0
+ self.log ("... removed")
del ts
if self.upgrade:
@@ -736,7 +743,9 @@ class ToDo:
package.selected = 0
# always upgrade all packages in Base package group
- self.comps['Base'].select(1)
+ # XXX, well - people say this isn't a good idea, so we won't
+ # do it anymore.
+# self.comps['Base'].select(1)
hasX = 0
hasgmc = 0