createrepo/__init__.py

[email protected]
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 createrepo/__init__.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a9b529f570b916deba9bfc41778519e712a75e2c
Author: Seth Vidal <[email protected]>
Date:   Wed Apr 15 14:47:29 2009 -0400

    it helps to have the right order of items in the pkgtup :(

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index cd6fd2c..0d44627 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -653,10 +653,10 @@ class MetaDataGenerator:
                 targets[drpm_po.pkgtup] = u''
             targets[drpm_po.pkgtup] += drpm.xml_dump_metadata()
         
-        for (n,e,v,r,a) in targets.keys():
+        for (n,a,e,v,r) in targets.keys():
             result += """  <newpackage name="%s" epoch="%s" version="%s" release="%s" arch="%s">\n""" % (
                     n,e,v,r,a)
-            for src in targets[(n,e,v,r,a)]:
+            for src in targets[(n,a,e,v,r)]:
                 result += src
             result += """   </newpackage>\n"""
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.