diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-28 04:27:15 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-28 04:27:15 +0000 |
commit | 9f6e78c4417d960a1df8eb580ca6a2af17072d49 (patch) | |
tree | 268afd941e2e82603fad56be54810d5a9f95fdae /upgrade.py | |
parent | aaca05aa7d309e0bcff7c7d6493aebae6dc51667 (diff) | |
download | anaconda-9f6e78c4417d960a1df8eb580ca6a2af17072d49.tar.gz anaconda-9f6e78c4417d960a1df8eb580ca6a2af17072d49.tar.xz anaconda-9f6e78c4417d960a1df8eb580ca6a2af17072d49.zip |
add some hacks for gnome upgrades
Diffstat (limited to 'upgrade.py')
-rw-r--r-- | upgrade.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/upgrade.py b/upgrade.py index 6aaddf4e0..8c1ba14b2 100644 --- a/upgrade.py +++ b/upgrade.py @@ -464,7 +464,7 @@ def upgradeFindPackages(intf, method, id, instPath, dir): id.upgradeDeps ="%s%s\n" % (id.upgradeDeps, text) log(text) pkgs = "" - for package in id.comps['GNOME'].pkgs: + for package in id.comps['GNOME Desktop Environment'].pkgs: try: rec = db.findbyname(package.name) except rpm.error: @@ -527,6 +527,21 @@ def upgradeFindPackages(intf, method, id, instPath, dir): log(text) id.hdList["nautilus"].select() + # now for ugly gnome2 upgrade hacks + recs = None + try: + recs = db.findbyname("gnome-core") + except rpm.error: + pass + if recs: + log("Upgrade: gnome-core was on the system. Upgrading to GNOME 2") + for pkg in ["gnome-terminal", "gnome-desktop", "gnome-session", + "gnome-panel", "metacity", "file-roller"]: + try: + id.hdList[pkg].select() + except: + pass + # more hacks! we can't really have anything require rhn-applet without # causing lots of pain (think systems that don't want rhn crap installed) # and up2date-gnome is just in the X11 group, so KDE users without GNOME |