summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-10 04:18:39 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-10 04:18:39 +0000
commit40a514a8d6eedf28ce1cdb53739187cea9b56862 (patch)
treecd7c5382549b6da57317244bd74d1b8ad8ea96be /packages.py
parent7be6920ee1a1cf7e1472e9c53ac9020824cd542d (diff)
downloadanaconda-40a514a8d6eedf28ce1cdb53739187cea9b56862.tar.gz
anaconda-40a514a8d6eedf28ce1cdb53739187cea9b56862.tar.xz
anaconda-40a514a8d6eedf28ce1cdb53739187cea9b56862.zip
open instlog in postinstall too
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index e67111cb4..70191fe5b 100644
--- a/packages.py
+++ b/packages.py
@@ -593,7 +593,16 @@ def doPostInstall(method, id, intf, instPath):
w = apply(apply, createWindow)
upgrade = id.upgrade.get()
- arch = iutil.getArch ()
+ arch = iutil.getArch ()
+
+ if upgrade:
+ logname = '/tmp/upgrade.log'
+ else:
+ logname = '/tmp/install.log'
+
+ instLogName = instPath + logname
+ instLog = open(instLogName, "a")
+
try:
if not upgrade:
# XXX should this go here?