From 8b432d528f558aff9fe22cda5e750b6e23b16789 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Apr 20 2010 21:50:17 +0000 Subject: - Add a patch to correctly set previous repodata path --- diff --git a/0001-Don-t-include-repodata-in-the-previous-path.patch b/0001-Don-t-include-repodata-in-the-previous-path.patch new file mode 100644 index 0000000..40ec383 --- /dev/null +++ b/0001-Don-t-include-repodata-in-the-previous-path.patch @@ -0,0 +1,29 @@ +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 + diff --git a/mash.spec b/mash.spec index e680176..f1fbc01 100644 --- a/mash.spec +++ b/mash.spec @@ -2,7 +2,7 @@ Name: mash Version: 0.5.15 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Koji buildsystem to yum repository converter Group: Development/Tools License: GPL @@ -13,6 +13,7 @@ Requires: yum, createrepo, koji Conflicts: pungi < 1.0.0 BuildRequires: python-devel BuildArch: noarch +Patch0: 0001-Don-t-include-repodata-in-the-previous-path.patch %description mash is a tool that queries a koji buildsystem for the latest RPMs for @@ -21,6 +22,7 @@ any multlib RPMs that are necessary. %prep %setup -q +%patch0 -p1 %build %{__python} setup.py build @@ -44,6 +46,9 @@ rm -rf $RPM_BUILD_ROOT /var/cache/mash %changelog +* Tue Apr 20 2010 Jesse Keating - 0.5.15-2 +- Add a patch to correctly set previous repodata path + * Fri Apr 16 2010 Bill Nottingham 0.5.15-1 - branched compose configuration tweaks - speed up composes a teeny bit