From cd89e28510b3ee0287dcf566d144d9eae387cf23 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Sep 04 2009 18:49:21 +0000 Subject: Add nosigcheck patch from EL-5. --- diff --git a/mash-nosigcheck.patch b/mash-nosigcheck.patch new file mode 100644 index 0000000..022c0c2 --- /dev/null +++ b/mash-nosigcheck.patch @@ -0,0 +1,13 @@ +diff -up mash-0.5.8/mash/metadata.py.foo mash-0.5.8/mash/metadata.py +--- mash-0.5.8/mash/metadata.py.foo 2009-06-23 11:05:52.000000000 -0400 ++++ mash-0.5.8/mash/metadata.py 2009-07-21 16:06:53.000000000 -0400 +@@ -117,8 +117,7 @@ class MetadataNew: + hdr = rpmUtils.miscutils.hdrFromPackage(ts, file) + fname = '%s-%s-%s.%s.rpm' % (hdr['name'], hdr['version'], hdr['release'], hdr['arch']) + if fname in list.keys(): +- if _sigmatches(hdr, list[fname]): +- return True ++ return True + return False + + def _copy(file, path): diff --git a/mash.spec b/mash.spec index c6a63b3..4ca437e 100644 --- a/mash.spec +++ b/mash.spec @@ -9,6 +9,7 @@ License: GPL URL: http://fedorahosted.org/releases/m/a/mash/ Source0: http://fedorahosted.org/releases/m/a/mash/%{name}-%{version}.tar.gz Patch1: mash-f12key.patch +Patch2: mash-nosigcheck.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: yum, createrepo, koji Conflicts: pungi < 1.0.0 @@ -23,6 +24,7 @@ any multlib RPMs that are necessary. %prep %setup -q %patch1 -p1 +%patch2 -p1 %build %{__python} setup.py build