diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-01-29 04:16:57 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-01-29 04:16:57 +0000 |
commit | 5c8528a8810b6f39b022b485604c05aa1e9e6c86 (patch) | |
tree | 8b563fbab4fed5a477a8f532b630eade1eef39f9 /packages.py | |
parent | 1167d5ba58a13e28650e43895b908f0f90687252 (diff) | |
download | anaconda-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)
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 4 |
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 () |