summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-10-26 22:34:48 +0000
committerJeremy Katz <katzj@redhat.com>2004-10-26 22:34:48 +0000
commitd675184ba9ea3fc8aecebd2ed7823f8f57c5142c (patch)
treef227c5860dab5e96384ad2b6a0cea63e534ae36f /upgrade.py
parentf847fc2f93b37188c09a7c1536ff7cb896724dbf (diff)
downloadanaconda-d675184ba9ea3fc8aecebd2ed7823f8f57c5142c.tar.gz
anaconda-d675184ba9ea3fc8aecebd2ed7823f8f57c5142c.tar.xz
anaconda-d675184ba9ea3fc8aecebd2ed7823f8f57c5142c.zip
2004-10-26 Jeremy Katz <katzj@redhat.com>
* upgrade.py (upgradeFindPackages): firefox replaces mozilla/netscape (#137244)
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/upgrade.py b/upgrade.py
index 8c267caf9..4d1d3e700 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -716,6 +716,19 @@ def upgradeFindPackages(intf, method, id, instPath, dir):
log(text)
id.grpset.hdrlist[new].select()
+ # firefox replaces mozilla/netscape (#137244)
+ if (id.grpset.hdrlist.has_key("firefox") and
+ not id.grpset.hdrlist["firefox"].isSelected()):
+ found = 0
+ for p in ("mozilla", "netscape-navigator", "netscape-communicator"):
+ mi = ts.dbMatch("name", p)
+ found += mi.count()
+ if found > 0:
+ text = "Upgrade: Found a graphical browser. Pulling in firefox"
+ id.upgradeDeps = "%s%s\n" %(id.upgradeDeps, text)
+ log(text)
+ id.grpset.hdrlist["firefox"].select()
+
# now some upgrade removal black list checking... there are things that
# if they were installed in the past, we want to remove them because
# they'll screw up the upgrade otherwise