From 751fccc1cc7036cd67575ac60a8e08aa2a8483df Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Apr 21 2010 15:33:42 +0000 Subject: Don't include "repodata" in the previous path. Createrepo already looks for the repodata/ directory and finds things within. If we add the repodata directory to the previous_path name createrepo doesn't find any existing repodata to re-use. This has slowed down composes likely since December of 2008. --- diff --git a/mash/__init__.py b/mash/__init__.py index 9357d37..fb94400 100644 --- a/mash/__init__.py +++ b/mash/__init__.py @@ -232,7 +232,7 @@ class Mash: if self.config.previous: prefix = os.path.join(self.config.outputdir, self.config.name, "") suffix = repo_path.replace(prefix, "") - previous_path = os.path.join(self.config.previous, suffix, "repodata") + previous_path = os.path.join(self.config.previous, suffix) self.logger.info("createrepo: starting %s..." % (path,)) status = self._makeMetadata(repo_path, repocache, arch, comps, previous = previous_path)