Branch 'maintenance' - dumpMetadata.py genpkgmetadata.py

[email protected] (Seth Vidal)
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 dumpMetadata.py   |    7 +++++--
 genpkgmetadata.py |    2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit cc92083a930e3f683c0d5606400511af97d6ed87
Author: Seth Vidal <[email protected]>
Date:   Fri Aug 24 11:08:56 2007 -0400

    allow createrepo to continue when it hits a bad package
    fix error outputs for python 2.5

diff --git a/dumpMetadata.py b/dumpMetadata.py
index a4c1ff0..07f7b07 100644
--- a/dumpMetadata.py
+++ b/dumpMetadata.py
@@ -220,9 +220,12 @@ def byteranges(file):
     
 
 class MDError(exceptions.Exception):
-    def __init__(self, args=None):
+    def __init__(self, value=None):
         exceptions.Exception.__init__(self)
-        self.args = args
+        self.value = value
+    
+    def __str__(self):
+        return self.value
 
 
 
diff --git a/genpkgmetadata.py b/genpkgmetadata.py
index 22b7c85..a4931ca 100755
--- a/genpkgmetadata.py
+++ b/genpkgmetadata.py
@@ -230,7 +230,7 @@ class MetaDataGenerator:
                 #scan rpm files
                 nodes = self._getNodes(file, directory, current)
             if nodes is None:
-                return
+                continue
             basenode, filenode, othernode = nodes
             del nodes
             if not self.cmds['quiet']:
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.