diff --git a/PackageKit-bz445086-update-detail-unbound.patch b/PackageKit-bz445086-update-detail-unbound.patch new file mode 100644 index 0000000..e88aacc --- /dev/null +++ b/PackageKit-bz445086-update-detail-unbound.patch @@ -0,0 +1,24 @@ +--- PackageKit-0.1.12/backends/yum/helpers/yumBackend.py Tue Apr 15 18:14:08 2008 ++++ PackageKit-0.1.12/backends/yum/helpers/yumBackend.py Mon May 5 11:13:04 2008 +@@ -1282,14 +1282,13 @@ + if refs: + for ref in refs: + typ = ref['type'] +- href = ref['href'] +- title = ref['title'] +- if typ in ('bugzilla','cve') and href != None: +- if title == None: +- title = "" +- urls[typ].append("%s;%s" % (href,title)) +- else: +- urls['vendor'].append("%s;%s" % (ref['href'],ref['title'])) ++ href = ref['href'] ++ title = ref['title'] or "" ++ if href: ++ if typ in ('bugzilla','cve'): ++ urls[typ].append("%s;%s" % (href,title)) ++ else: ++ urls['vendor'].append("%s;%s" % (href,ref['title'])) + + # Reboot flag + if notice.get_metadata().has_key('reboot_suggested') and notice['reboot_suggested']: diff --git a/PackageKit.spec b/PackageKit.spec index cf1df77..9257d82 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -9,11 +9,12 @@ Summary: System daemon that is a DBUS abstraction layer for package management Name: PackageKit Version: 0.1.12 -Release: 4.%{?alphatag}%{?dist} +Release: 5.%{?alphatag}%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://packagekit.freedesktop.org Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}-%{?alphatag}.tar.gz +Patch0: PackageKit-bz445086-update-detail-unbound.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: dbus >= %{dbus_version} @@ -85,6 +86,7 @@ Headers and libraries for PackageKit. %prep %setup -q +%patch0 -p1 %build %configure --enable-yum --enable-yum2 --with-default-backend=yum @@ -172,6 +174,10 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/* %changelog +* Mon May 5 2008 Robin Norwood - 0.1.12-5.20080416git +- Apply patch to fix update detail unbound error. +- Fix rhbz#445086 + * Wed Apr 16 2008 Richard Hughes - 0.1.12-4.20080416git - Urgh, actually upload the correct tarball.