diff --git a/createrepo.spec b/createrepo.spec index 48158d6..1e74075 100644 --- a/createrepo.spec +++ b/createrepo.spec @@ -3,11 +3,12 @@ Summary: Creates a common metadata repository Name: createrepo Version: 0.9.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: System Environment/Base Source: %{name}-%{version}.tar.gz Patch0: ten-changelog-limit.patch +Patch1: empty-pkgid-raise.patch URL: http://linux.duke.edu/projects/metadata/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArchitectures: noarch @@ -22,6 +23,7 @@ packages. %prep %setup -q %patch0 -p0 +%patch1 -p0 %build @@ -43,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT %{python_sitelib}/createrepo %changelog +* Fri Feb 22 2008 Seth Vidal - 0.9.5-2 +- patch for the mistake in the raise for an empty pkgid + * Tue Feb 19 2008 Seth Vidal - 0.9.5-1 - 0.9.5 - ten-changelog-limit patch by default in fedora diff --git a/empty-pkgid-raise.patch b/empty-pkgid-raise.patch new file mode 100644 index 0000000..2062433 --- /dev/null +++ b/empty-pkgid-raise.patch @@ -0,0 +1,11 @@ +--- createrepo/__init__.py~ 2008-02-22 10:52:24.000000000 -0500 ++++ createrepo/__init__.py 2008-02-22 10:52:24.000000000 -0500 +@@ -369,7 +369,7 @@ + # and work down from there for the baseurl + + if po.checksum in (None, ""): +- raise MDError, "No Package ID found for package %s, not going to add it" % e ++ raise MDError, "No Package ID found for package %s, not going to add it" % po + + return po +