summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-08-11 20:52:02 +0000
committerJeremy Katz <katzj@redhat.com>2002-08-11 20:52:02 +0000
commitb0aadc12f92a39ab94d24949978f501481f1004a (patch)
tree5b25352cd16d767220541a6b9e0f987b8e68a412 /packages.py
parent6e20fc4743a590ecb88fa01355ec32cdb868d7f5 (diff)
downloadanaconda-b0aadc12f92a39ab94d24949978f501481f1004a.tar.gz
anaconda-b0aadc12f92a39ab94d24949978f501481f1004a.tar.xz
anaconda-b0aadc12f92a39ab94d24949978f501481f1004a.zip
write out that we installed the comps package to the install log (#69951)
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages.py b/packages.py
index b7ef270c0..0e1203987 100644
--- a/packages.py
+++ b/packages.py
@@ -910,7 +910,18 @@ def doPostInstall(method, id, intf, instPath):
stdout = "/dev/tty5",
stderr = "/dev/tty5",
root = instPath)
+ fd = os.open(id.compspkg, os.O_RDONLY)
+ h = rpm.headerFromPackage(fd)[0]
+ os.close(fd)
+ if upgrade:
+ text = _("Upgrading %s-%s-%s.\n")
+ else:
+ text = _("Installing %s-%s-%s.\n")
+ instLog.write(text % (h['name'],
+ h['version'],
+ h['release']))
os.unlink(id.compspkg)
+
except:
log("failed to install comps.rpm. oh well")
try: