summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-10-12 19:23:55 +0000
committerJeremy Katz <katzj@redhat.com>2004-10-12 19:23:55 +0000
commit2ef471726416fa3ac52e85a38eeb7930b0638094 (patch)
tree250a5f2e8ddbed10a7745114f30b4ac5cd0148a0 /upgrade.py
parent3f0f5e3b3577a39c11f53ef39fb899dfcc93d1b8 (diff)
downloadanaconda-2ef471726416fa3ac52e85a38eeb7930b0638094.tar.gz
anaconda-2ef471726416fa3ac52e85a38eeb7930b0638094.tar.xz
anaconda-2ef471726416fa3ac52e85a38eeb7930b0638094.zip
2004-10-12 Jeremy Katz <katzj@redhat.com>
* upgrade.py (upgradeFindPackages): Handle the great input method switch (#129218)
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/upgrade.py b/upgrade.py
index 4aed492d2..8c267caf9 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -683,6 +683,39 @@ def upgradeFindPackages(intf, method, id, instPath, dir):
log(text)
id.grpset.hdrlist["xterm"].select()
+ # input methods all changed. hooray!
+ imupg = ( ("ami", "iiimf-le-hangul"),
+ ("kinput2", "iiimf-le-canna"),
+ ("miniChinput", "iiimf-le-chinput"),
+ ("xcin", "iiimf-le-xcin") )
+ iiimf = 0
+ for (old, new) in imupg:
+ mi = ts.dbMatch("name", old)
+ if (mi.count() > 0 and id.grpset.hdrlist.has_key(new) and
+ not id.grpset.hdrlist[new].isSelected()):
+ text = "Upgrade: %s was on the system. Pulling in %s" %(old, new)
+ id.upgradeDeps = "%s%s\n" %(id.upgradeDeps, text)
+ log(text)
+ id.grpset.hdrlist[new].select()
+ iiimf = 1
+ if iiimf:
+ imupg = ( ("iiimf-gnome-im-switcher", "control-center"),
+ ("iiimf-gnome-im-switcher", "gnome-panel"),
+ ("iiimf-gtk", "gtk2"),
+ ("system-switch-im", "gtk2") )
+ for (new, old) in imupg:
+ mi = ts.dbMatch("name", old)
+ if (not id.grpset.hdrlist.has_key(new) or
+ id.grpset.hdrlist[new].isSelected()):
+ continue
+ if (mi.count() > 0 or
+ id.grpset.hdrlist.has_key(old) and
+ id.grpset.hdrlist[old].isSelected()):
+ text = "Upgrade: Need iiimf base package %s" %(new,)
+ id.upgradeDeps("%s%s\n" %(id.upgradeDeps, text))
+ log(text)
+ id.grpset.hdrlist[new].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