[Rpm-metadata] createrepo/__init__.py

skvidal at osuosl.org skvidal at osuosl.org
Fri May 8 05:05:53 UTC 2009


 createrepo/__init__.py |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e896f240633700bd92e2ab594d61bb9a10458ffb
Author: Seth Vidal <skvidal at fedoraproject.org>
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)


More information about the Rpm-metadata mailing list