diff options
author | Matt Wilson <msw@redhat.com> | 2001-06-27 01:41:11 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-06-27 01:41:11 +0000 |
commit | ed22bad610fb5082b63621cffc0d7e51f228a4a9 (patch) | |
tree | 90dac5b90af91f3cfe0a219f08d861072449b409 /upgrade.py | |
parent | 15743f4fcc3a54581ca68a14805cb77e624abeb4 (diff) | |
download | anaconda-ed22bad610fb5082b63621cffc0d7e51f228a4a9.tar.gz anaconda-ed22bad610fb5082b63621cffc0d7e51f228a4a9.tar.xz anaconda-ed22bad610fb5082b63621cffc0d7e51f228a4a9.zip |
check ondisk for these packages in case they are on the system and not newer in the distro
Diffstat (limited to 'upgrade.py')
-rw-r--r-- | upgrade.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/upgrade.py b/upgrade.py index f9bf382aa..3ee3916fa 100644 --- a/upgrade.py +++ b/upgrade.py @@ -286,6 +286,17 @@ def upgradeFindPackages (intf, method, id, instPath): # open up the database to check dependencies db = rpm.opendb (0, instPath) + # check the installed system to see if the packages just + # are not newer in this release. + if hasX and not hasFileManager: + for name in ("gmc", "kdebase"): + try: + db.findbyname (name) + hasFileManager = 1 + break + except rpm.error: + continue + # 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: |