diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-06-07 14:58:51 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-06-07 14:58:51 +0000 |
commit | 82d1e31cccb065212137d8aae77c8ad255246eac (patch) | |
tree | ba04613f93680916556327b2284652613f72b9fb /packages.py | |
parent | 984cfdb6022eaad64f9f181e4d86330e552c283e (diff) | |
download | anaconda-82d1e31cccb065212137d8aae77c8ad255246eac.tar.gz anaconda-82d1e31cccb065212137d8aae77c8ad255246eac.tar.xz anaconda-82d1e31cccb065212137d8aae77c8ad255246eac.zip |
2005-06-07 Jeremy Katz <katzj@redhat.com>
* packages.py (rpmErrorClass.install_callback): Don't segfault
before removes, should fix upgrades.
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages.py b/packages.py index f64b34de2..df3f56f05 100644 --- a/packages.py +++ b/packages.py @@ -876,6 +876,11 @@ def doInstall(method, id, intf, instPath): for pkg in id.upgradeRemove: ts.addErase(pkg) + # set the rpm log file to /dev/null to start with so we don't segfault + f = open("/dev/null", "w+") + rpm.setLogFile(f) + ts.scriptFd = f.fileno() + # if we hit problems, it's not like there's anything we can # do about it ts.run(install_callback, 0) |