Add patch to fix update detail unbound error.
This commit is contained in:
parent
df944757cd
commit
83f29a7826
24
PackageKit-bz445086-update-detail-unbound.patch
Normal file
24
PackageKit-bz445086-update-detail-unbound.patch
Normal file
@ -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']:
|
||||
@ -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 <rnorwood@redhat.com> - 0.1.12-5.20080416git
|
||||
- Apply patch to fix update detail unbound error.
|
||||
- Fix rhbz#445086
|
||||
|
||||
* Wed Apr 16 2008 Richard Hughes <rhughes@redhat.com> - 0.1.12-4.20080416git
|
||||
- Urgh, actually upload the correct tarball.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user