createrepo/__init__.py

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

New commits:
commit e896f240633700bd92e2ab594d61bb9a10458ffb
Author: Seth Vidal <[email protected]>
Date:   Fri May 8 01:03:50 2009 -0400

    if our deltarpm dir doesn't exist, don't go looking for it - and definitely
    don't traceback

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 26cdff7..ac79421 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -619,6 +619,8 @@ class MetaDataGenerator:
         # get list of potential candidates which are likely to match
         for d in self.conf.oldpackage_paths:
             pot_cand = []
+            if d not in opd:
+                continue
             for fn in opd[d]:
                 if os.path.basename(fn).startswith(pkg.name):
                     pot_cand.append(fn)
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.