From 0c185b62db9ae5f50a376f17d0d7da507d150226 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 20 Apr 2010 14:45:55 -0700 Subject: [PATCH] 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. --- mash/__init__.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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) -- 1.7.0.1