createrepo/yumbased.py

[email protected] (Seth Vidal)
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 createrepo/yumbased.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 7f01cbbb028396a72709ea359766195e6bb6530f
Author: Seth Vidal <[email protected]>
Date:   Wed Jan 9 01:50:07 2008 -0500

    free up memory in the changelog output used by generating the xml node

diff --git a/createrepo/yumbased.py b/createrepo/yumbased.py
index 237e968..cab3c47 100644
--- a/createrepo/yumbased.py
+++ b/createrepo/yumbased.py
@@ -293,7 +293,9 @@ class CreateRepoPackage(YumLocalPackage):
             c.newProp('author', utils.utf8String(author))
             c.newProp('date', str(ts))
             msg += c.serialize()
-            del c            
+            c.unlinkNode()
+            c.freeNode()  
+            del c
         return msg                                                 
 
     def do_primary_xml_dump(self, basedir, baseurl=None):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.