diff options
author | Matt Wilson <msw@redhat.com> | 2002-07-15 18:32:45 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-07-15 18:32:45 +0000 |
commit | 6b558dbe8b23ff9cc134584f4e95635fe91b2412 (patch) | |
tree | bc954db6a1597827fc1403ea178481bcf927a8b5 | |
parent | 88076c25e83ccf1f780d3381792905eeb899310d (diff) | |
download | anaconda-6b558dbe8b23ff9cc134584f4e95635fe91b2412.tar.gz anaconda-6b558dbe8b23ff9cc134584f4e95635fe91b2412.tar.xz anaconda-6b558dbe8b23ff9cc134584f4e95635fe91b2412.zip |
tuples are better for static lists
-rw-r--r-- | upgrade.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/upgrade.py b/upgrade.py index 90bab47bd..d54b11fe7 100644 --- a/upgrade.py +++ b/upgrade.py @@ -236,8 +236,8 @@ def upgradeMountFilesystems(intf, rootInfo, oldfsset, instPath): "upgrade again.")) sys.exit(0) - checkLinks = [ '/etc', '/var', '/var/lib', '/var/lib/rpm', - '/boot', '/tmp', '/var/tmp', '/root' ] + checkLinks = ( '/etc', '/var', '/var/lib', '/var/lib/rpm', + '/boot', '/tmp', '/var/tmp', '/root' ) badLinks = [] for n in checkLinks: if not os.path.islink(instPath + n): continue @@ -540,8 +540,8 @@ def upgradeFindPackages(intf, method, id, instPath, dir): 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", "yelp"]: + for pkg in ("gnome-terminal", "gnome-desktop", "gnome-session", + "gnome-panel", "metacity", "file-roller", "yelp"): try: id.hdList[pkg].select() except: |