summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-12-16 20:24:55 +0000
committerJeremy Katz <katzj@redhat.com>2002-12-16 20:24:55 +0000
commit77ddf6632320bf77c38b860acc37ab69cb7c9297 (patch)
treee3dd67d67f603735d1dd0e4f0565d9ab63e5fcc0
parent8ce7c0429f14d948acd32674144adae7c474aec1 (diff)
downloadanaconda-77ddf6632320bf77c38b860acc37ab69cb7c9297.tar.gz
anaconda-77ddf6632320bf77c38b860acc37ab69cb7c9297.tar.xz
anaconda-77ddf6632320bf77c38b860acc37ab69cb7c9297.zip
explicitly close the db. hopefully will fix #79341
-rw-r--r--comps.py5
-rw-r--r--packages.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/comps.py b/comps.py
index 0f2fac9dd..75e926329 100644
--- a/comps.py
+++ b/comps.py
@@ -915,13 +915,14 @@ class ComponentSet:
conflicts = 0
if conflicts:
- log ("%s-%s-%s conflicts with to-be-installed "
+ log ("%s-%s-%s conflicts with older "
"package %s-%s, removing %s from set",
name, version, release, reqname, reqversion, reqname)
if self.packages.packages.has_key (reqname):
self.packages.packages[reqname].selected = 0
log ("... removed")
-
+
+ ts.closeDB()
del ts
if not rc:
diff --git a/packages.py b/packages.py
index fb2e19631..4a211bfd4 100644
--- a/packages.py
+++ b/packages.py
@@ -850,6 +850,7 @@ def doInstall(method, id, intf, instPath):
intf.messageWindow (_("Disk Space"), probs)
+ ts.closeDB()
del ts
instLog.close()
syslog.stop()
@@ -861,6 +862,7 @@ def doInstall(method, id, intf, instPath):
# 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)