[Rpm-metadata] Branch 'maintenance' - dumpMetadata.py genpkgmetadata.py
Seth Vidal
skvidal at linux.duke.edu
Fri Aug 24 15:10:40 UTC 2007
dumpMetadata.py | 7 +++++--
genpkgmetadata.py | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
New commits:
commit cc92083a930e3f683c0d5606400511af97d6ed87
Author: Seth Vidal <skvidal at fedoraproject.org>
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']:
More information about the Rpm-metadata
mailing list