8b432d5
From 0c185b62db9ae5f50a376f17d0d7da507d150226 Mon Sep 17 00:00:00 2001
8b432d5
From: Jesse Keating <jkeating@redhat.com>
8b432d5
Date: Tue, 20 Apr 2010 14:45:55 -0700
8b432d5
Subject: [PATCH] Don't include "repodata" in the previous path.
8b432d5
8b432d5
Createrepo already looks for the repodata/ directory and finds things
8b432d5
within.  If we add the repodata directory to the previous_path name
8b432d5
createrepo doesn't find any existing repodata to re-use.  This has
8b432d5
slowed down composes likely since December of 2008.
8b432d5
---
8b432d5
 mash/__init__.py |    2 +-
8b432d5
 1 files changed, 1 insertions(+), 1 deletions(-)
8b432d5
8b432d5
diff --git a/mash/__init__.py b/mash/__init__.py
8b432d5
index 9357d37..fb94400 100644
8b432d5
--- a/mash/__init__.py
8b432d5
+++ b/mash/__init__.py
8b432d5
@@ -232,7 +232,7 @@ class Mash:
8b432d5
             if self.config.previous:
8b432d5
                 prefix = os.path.join(self.config.outputdir, self.config.name, "")
8b432d5
                 suffix = repo_path.replace(prefix, "")
8b432d5
-                previous_path = os.path.join(self.config.previous, suffix, "repodata")
8b432d5
+                previous_path = os.path.join(self.config.previous, suffix)
8b432d5
             self.logger.info("createrepo: starting %s..." % (path,))
8b432d5
             status = self._makeMetadata(repo_path, repocache, arch, comps, previous = previous_path)
8b432d5
 
8b432d5
-- 
8b432d5
1.7.0.1
8b432d5