[packages/mock] do not verify for rpm.RPMTAG_SOURCEPACKAGE
glen
glen at pld-linux.org
Tue Jun 10 14:53:44 CEST 2014
commit 6781196fc89a1b53cb09369ca40d0fcded057eff
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jun 10 15:52:42 2014 +0300
do not verify for rpm.RPMTAG_SOURCEPACKAGE
see http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2014-June/023949.html
mock.spec | 2 ++
no-srpm-header.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/mock.spec b/mock.spec
index c566f74..3cb7e28 100644
--- a/mock.spec
+++ b/mock.spec
@@ -9,6 +9,7 @@ License: GPL v2+
Group: Development/Tools
Source0: https://git.fedorahosted.org/cgit/mock.git/snapshot/%{name}-%{version}.tar.xz
# Source0-md5: dc3d5c4ed6657d158a30d949f7baac88
+Patch0: no-srpm-header.patch
URL: https://fedoraproject.org/wiki/Projects/Mock
BuildRequires: autoconf
BuildRequires: automake
@@ -63,6 +64,7 @@ bash-completion for Mock.
%prep
%setup -q
+%patch0 -p1
# keep for reference to build pld files
install -d sample-configs
diff --git a/no-srpm-header.patch b/no-srpm-header.patch
new file mode 100644
index 0000000..4e8b470
--- /dev/null
+++ b/no-srpm-header.patch
@@ -0,0 +1,11 @@
+--- mock-1.1.38/py/mockbuild/util.py~ 2014-03-31 21:46:15.000000000 +0300
++++ mock-1.1.38/py/mockbuild/util.py 2014-06-10 15:52:00.002122289 +0300
+@@ -131,7 +131,7 @@
+
+
+ decorate(traceLog())
+-def yieldSrpmHeaders(srpms, plainRpmOk=0):
++def yieldSrpmHeaders(srpms, plainRpmOk=1):
+ ts = rpmUtils.transaction.initReadOnlyTransaction()
+ for srpm in srpms:
+ try:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mock.git/commitdiff/6781196fc89a1b53cb09369ca40d0fcded057eff
More information about the pld-cvs-commit
mailing list