Bug 58352
Summary: | Upgrade: System has X but no desktop -- Installing GNOME | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Pekka Savola <pekkas> |
Component: | anaconda | Assignee: | Jeremy Katz <katzj> |
Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-02-21 18:48:20 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pekka Savola
2002-01-14 21:23:39 UTC
This is because otherwise, upgrading from a release which didn't use GNOME to the current release can leave you without any desktop system. Matt? diff -u -r1.63.10.2 upgrade.py --- upgrade.py 27 Feb 2002 00:16:13 -0000 1.63.10.2 +++ upgrade.py 12 Mar 2002 22:05:36 -0000 @@ -20,6 +20,7 @@ import rpm import sys import os.path +import string from flags import flags from fsset import * from partitioning import * @@ -420,9 +421,23 @@ except rpm.error: continue + currentVersion = 0.0 + try: + recs = db.findbyprovides('redhat-release') + except rpm.error: + recs = None + for rec in recs: + try: + vers = string.atof(db[rec][rpm.RPMTAG_VERSION]) + except ValueError: + vers = 0.0 + if vers > currentVersion: + currentVersion = vers + # if we have X but not gmc, we need to turn on GNOME. We only # want to turn on packages we don't have installed already, though. - if hasX and not hasFileManager: + # Only do this mess if user is upgrading from version older than 6.0. + if hasX and not hasFileManager and currentVersion < 6.0: text = "Upgrade: System has X but no desktop -- Installing GNOME" id.upgradeDeps ="%s%s\n" % (id.upgradeDeps, text) log(text) Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |