summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-01-29 04:16:57 +0000
committerJeremy Katz <katzj@redhat.com>2003-01-29 04:16:57 +0000
commit5c8528a8810b6f39b022b485604c05aa1e9e6c86 (patch)
tree8b563fbab4fed5a477a8f532b630eade1eef39f9
parent1167d5ba58a13e28650e43895b908f0f90687252 (diff)
downloadanaconda-5c8528a8810b6f39b022b485604c05aa1e9e6c86.tar.gz
anaconda-5c8528a8810b6f39b022b485604c05aa1e9e6c86.tar.xz
anaconda-5c8528a8810b6f39b022b485604c05aa1e9e6c86.zip
use new rpm.setLogFile for setting log file instead of the old error callback
which we were doing before and broke. (#80751)
-rw-r--r--packages.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages.py b/packages.py
index 07e0b78e4..f323b1feb 100644
--- a/packages.py
+++ b/packages.py
@@ -769,6 +769,7 @@ def doInstall(method, id, intf, instPath):
instLog.write(_("Installing %s packages\n\n") % (num,))
ts.scriptFd = instLog.fileno ()
+ rpm.setLogFile(instLog)
# the transaction set dup()s the file descriptor and will close the
# dup'd when we go out of scope
@@ -778,7 +779,6 @@ def doInstall(method, id, intf, instPath):
modeText = _("Installing %s-%s-%s.\n")
errors = rpmErrorClass(instLog)
-# oldError = rpm.errorSetCallback (errors.cb)
pkgTimer = timer.Timer(start = 0)
id.instProgress.setSizes(total, totalSize)
@@ -890,14 +890,12 @@ def doInstall(method, id, intf, instPath):
method.systemUnmounted ()
-# rpm.errorSetCallback (oldError)
return DISPATCH_BACK
# This should close the RPM database so that you can
# do RPM ops in the chroot in a %post ks script
ts.closeDB()
del ts
-# rpm.errorSetCallback (oldError)
method.filesDone ()