summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-07-03 05:01:10 +0000
committerJeremy Katz <katzj@redhat.com>2003-07-03 05:01:10 +0000
commitb28e6ae2caf4bf39b667ef43cd5975706d4189f7 (patch)
treef7e12e4f0caebaab6f8c034f162bb250144a23e7 /packages.py
parentad4b0bfcf3ad8e25c3c509464e07c002f43b6dd5 (diff)
downloadanaconda-b28e6ae2caf4bf39b667ef43cd5975706d4189f7.tar.gz
anaconda-b28e6ae2caf4bf39b667ef43cd5975706d4189f7.tar.xz
anaconda-b28e6ae2caf4bf39b667ef43cd5975706d4189f7.zip
wow, the "not installed packages" list was really broken. fix it
and move it to be after comps.rpm installation (to make it look less weird) (#91411)
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py42
1 files changed, 20 insertions, 22 deletions
diff --git a/packages.py b/packages.py
index c0799c88d..60f6b1742 100644
--- a/packages.py
+++ b/packages.py
@@ -925,27 +925,6 @@ def doInstall(method, id, intf, instPath):
log("failed to unlink /var/lib/rpm: %s" %(e,))
- if upgrade:
- instLog.write(_("\n\nThe following packages were available in "
- "this version but NOT upgraded:\n"))
- else:
- instLog.write(_("\n\nThe following packages were available in "
- "this version but NOT installed:\n"))
-
- lines = []
- for line in lines:
- instLog.write(line)
- lines = []
- for p in id.grpset.hdrlist.values():
- if not p.isSelected():
- lines.append("%s-%s-%s.%s.rpm\n" %
- (p.hdr[rpm.RPMTAG_NAME],
- p.hdr[rpm.RPMTAG_VERSION],
- p.hdr[rpm.RPMTAG_RELEASE],
- p.hdr[rpm.RPMTAG_ARCH]))
- lines.sort()
- for line in lines:
- instLog.write(line)
instLog.close ()
id.instProgress = None
@@ -1116,10 +1095,29 @@ def doPostInstall(method, id, intf, instPath):
w.set(6)
-
finally:
pass
+ if upgrade:
+ instLog.write(_("\n\nThe following packages were available in "
+ "this version but NOT upgraded:\n"))
+ else:
+ instLog.write(_("\n\nThe following packages were available in "
+ "this version but NOT installed:\n"))
+
+ lines = []
+ for p in id.grpset.hdrlist.values():
+ if not p.isSelected():
+ lines.append("%s-%s-%s.%s.rpm\n" %
+ (p.hdr[rpm.RPMTAG_NAME],
+ p.hdr[rpm.RPMTAG_VERSION],
+ p.hdr[rpm.RPMTAG_RELEASE],
+ p.hdr[rpm.RPMTAG_ARCH]))
+ lines.sort()
+ for line in lines:
+ instLog.write(line)
+
+
# XXX hack - we should really write a proper /etc/lvmtab. but for now
# just create the lvmtab if they have /sbin/vgscan and some VGs
if (os.access(instPath + "/sbin/vgscan", os.X_OK) and