From e896f240633700bd92e2ab594d61bb9a10458ffb Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Fri, 8 May 2009 01:03:50 -0400 Subject: [PATCH] if our deltarpm dir doesn't exist, don't go looking for it - and definitely don't traceback --- createrepo/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.34.1