[yum-commits] plugins/changelog
Panu Matilainen
pmatilai at osuosl.org
Tue Mar 1 09:26:24 UTC 2011
plugins/changelog/changelog.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bfd41f10b3810c1dbfd968be82f63c0a00b0e2fb
Author: Panu Matilainen <pmatilai at redhat.com>
Date: Tue Mar 1 11:22:44 2011 +0200
Avoid unnecessary po header access in changelog plugin
Accessing the hdr member of package objects makes yum to keep the
entire header in memory forever after, causing huge memory bloat
when we're jumping through hoops to conserve memory.
diff --git a/plugins/changelog/changelog.py b/plugins/changelog/changelog.py
index 5401250..16144c6 100644
--- a/plugins/changelog/changelog.py
+++ b/plugins/changelog/changelog.py
@@ -283,7 +283,7 @@ def postresolve_hook(conduit):
mdi = UpdateMetadata(repos=list(repos))
for tsmem in ts.getMembers():
for po in rpmdb.searchNevra(name=tsmem.po.name, arch=tsmem.po.arch):
- times = po.hdr['changelogtime']
+ times = po['changelogtime']
try:
n,v,r,e,a = splitFilename(po.sourcerpm)
except TypeError:
More information about the Yum-commits
mailing list