From 7d9274883865d75aa2fbc0d7b73a26aa34ac66ed Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 16 Jul 2008 13:31:17 -0400 Subject: [PATCH] Don't try to make debuginfo repos for source arch. --- src/pypungi/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index d2e6d120..b809b6ad 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -613,6 +613,9 @@ class Pungi(pypungi.PungiBase): # create repodata for debuginfo if self.config.getboolean('default', 'debuginfo'): path = os.path.join(self.archdir, 'debug') + if not os.path.isdir(path): + self.logger.debug("No debuginfo for %s" % self.config.get('default', 'arch')) + return self._makeMetadata(path, cachedir, repoview=False) def doBuildinstall(self):