[createrepo] Add workers=1 default back, API users need it. BZ 1021162
Zdeněk Pavlas
zpavlas at fedoraproject.org
Mon Oct 21 08:40:01 UTC 2013
commit 273f01cd3f5eacc342e1fa857b56c7094909b504
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Mon Oct 21 10:39:55 2013 +0200
Add workers=1 default back, API users need it. BZ 1021162
BZ-1021162-workers-default.patch | 25 +++++++++++++++++++++++++
createrepo.spec | 7 ++++++-
2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/BZ-1021162-workers-default.patch b/BZ-1021162-workers-default.patch
new file mode 100644
index 0000000..5e788ae
--- /dev/null
+++ b/BZ-1021162-workers-default.patch
@@ -0,0 +1,25 @@
+From 780dcf31a19298761ba589f31b4a391963ecd212 Mon Sep 17 00:00:00 2001
+From: Zdenek Pavlas <zpavlas at redhat.com>
+Date: Mon, 21 Oct 2013 10:20:43 +0200
+Subject: [PATCH] Removing the workers=1 default breaks API users, put it
+ back. BZ 1021162
+
+---
+ createrepo/__init__.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/createrepo/__init__.py b/createrepo/__init__.py
+index ef63e57..dfdc8ab 100644
+--- a/createrepo/__init__.py
++++ b/createrepo/__init__.py
+@@ -108,6 +108,7 @@ class MetaDataConfig(object):
+ self.read_pkgs_list = None # filepath/name to write out list of pkgs
+ # read in this run of createrepo
+ self.collapse_glibc_requires = True
++ self.workers = 1 # number of workers to fork off to grab metadata from the pkgs
+ self.worker_cmd = '/usr/share/createrepo/worker.py'
+ #self.worker_cmd = './worker.py' # helpful when testing
+ self.retain_old_md = 0
+--
+1.7.11.7
+
diff --git a/createrepo.spec b/createrepo.spec
index f00c024..cf02e19 100644
--- a/createrepo.spec
+++ b/createrepo.spec
@@ -15,11 +15,12 @@ BuildRequires: bash-completion
Summary: Creates a common metadata repository
Name: createrepo
Version: 0.10
-Release: 0%{?dist}
+Release: 1%{?dist}
License: GPLv2
Group: System Environment/Base
Source: http://createrepo.baseurl.org/download/%{name}-%{version}.tar.gz
Patch1: ten-changelog-limit.patch
+Patch10: BZ-1021162-workers-default.patch
URL: http://createrepo.baseurl.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArchitectures: noarch
@@ -34,6 +35,7 @@ packages.
%prep
%setup -q
%patch1 -p0
+%patch10 -p1
%build
@@ -57,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/createrepo
%changelog
+* Mon Oct 21 2013 Zdenek Pavlas <zpavlas at redhat.com> - 0.10-1
+- Add workers=1 default back, API users need it. BZ 1021162
+
* Fri Oct 18 2013 Zdenek Pavlas <zpavlas at redhat.com> - 0.10-0
- update to latest HEAD
- Don't spawn more workers that #pkgfiles.
More information about the scm-commits
mailing list