Bug 525297
Summary: | yum-3.2.24-5.fc12 seems to break livecd composes | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kevin Fenzi <kevin> |
Component: | yum | Assignee: | Seth Vidal <skvidal> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | ffesti, james.antill, maxamillion, pmatilai, tim.lauridsen |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-09-24 17:48:43 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 507678 |
Description
Kevin Fenzi
2009-09-23 20:20:17 UTC
Can you test this patch: Explicitly close the sqlite handle, adds .close() and calls it on delete diff --git a/yum/history.py b/yum/history.py index ea3a464..482587e 100644 --- a/yum/history.py +++ b/yum/history.py @@ -215,6 +215,9 @@ class YumHistory: if self._db_file is None: self._create_db_file() + def __del__(self): + self.close() + def _get_cursor(self): if self._conn is None: self._conn = sqlite.connect(self._db_file) @@ -222,6 +225,11 @@ class YumHistory: def _commit(self): return self._conn.commit() + def close(self): + if self._conn is not None: + self._conn.close() + self._conn = None + def _pkgtup2pid(self, pkgtup, checksum=None): cur = self._get_cursor() executeSQL(cur, """SELECT pkgtupid, checksum FROM pkgtups ...I'm not sure if I need to hook something up in the YumBase() del/close too. Looks like it, this does the close explicitly: http://james.fedorapeople.org/yum/patches/history-close.patch Yep. yum-3.2.24-6.fc12.noarch works here (which I assume has this patch in it ;) |