rpms/PackageKit/F-9 pk-network-fallback-use-zero-destination.patch, NONE, 1.1 PackageKit.spec, 1.44, 1.45 packagekit-backport-gpg-giant-bodge.patch, 1.1, NONE packagekit-bump-soname.patch, 1.1, NONE

Richard Hughes (rhughes) fedora-extras-commits at redhat.com
Wed Aug 6 08:04:16 UTC 2008


Author: rhughes

Update of /cvs/pkgs/rpms/PackageKit/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20673

Modified Files:
	PackageKit.spec 
Added Files:
	pk-network-fallback-use-zero-destination.patch 
Removed Files:
	packagekit-backport-gpg-giant-bodge.patch 
	packagekit-bump-soname.patch 
Log Message:
* Wed Aug 06 2008 Richard Hughes  <rhughes at redhat.com> - 0.2.4-3
- Check for a zero destination in the unix network fallback code.
- Fixes rh#445158.


pk-network-fallback-use-zero-destination.patch:

--- NEW FILE pk-network-fallback-use-zero-destination.patch ---
commit 8ea1106a44568132947e29b75788d724827cf0e5
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Aug 6 08:47:11 2008 +0100

    check for a zero destination in the unix network fallback code to fix rh#453531

diff --git a/src/pk-network-unix.c b/src/pk-network-unix.c
index 74b266c..9cf363d 100644
--- a/src/pk-network-unix.c
+++ b/src/pk-network-unix.c
@@ -150,6 +150,12 @@ pk_network_unix_get_network_state (PkNetworkUnix *network_unix)
 			continue;
 		}
 
+		/* is destination zero (default route)? */
+		if (pk_strequal (sections[1], "00000000")) {
+			pk_debug ("destination %s is valid", sections[0]);
+			online = TRUE;
+		}
+
 		/* is gateway nonzero? */
 		if (!pk_strequal (sections[2], "00000000")) {
 			pk_debug ("interface %s is valid", sections[0]);


Index: PackageKit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/PackageKit/F-9/PackageKit.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- PackageKit.spec	4 Aug 2008 19:08:43 -0000	1.44
+++ PackageKit.spec	6 Aug 2008 08:03:46 -0000	1.45
@@ -8,7 +8,7 @@
 Summary:   System daemon that is a DBUS abstraction layer for package management
 Name:      PackageKit
 Version:   0.2.4
-Release:   2%{?dist}
+Release:   3%{?dist}
 License:   GPLv2+
 Group:     System Environment/Libraries
 URL:       http://packagekit.freedesktop.org
@@ -16,6 +16,9 @@
 Source0:   http://www.packagekit.org/releases/%{name}-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+# upstream, 8ea1106a44568132947e29b75788d724827cf0e5
+Patch0:    pk-network-fallback-use-zero-destination.patch
+
 Requires: dbus >= %{dbus_version}
 Requires: PackageKit-libs = %{version}-%{release}
 Requires: yum-packagekit = %{version}-%{release}
@@ -99,6 +102,7 @@
 %prep
 #%setup -q -n %{name}-%{version}-%{?alphatag}
 %setup -q
+%patch0 -p1
 
 %build
 %configure --enable-yum --enable-yum2 --with-default-backend=yum --disable-local
@@ -195,6 +199,10 @@
 %{_includedir}/*
 
 %changelog
+* Wed Aug 06 2008 Richard Hughes  <rhughes at redhat.com> - 0.2.4-3
+- Check for a zero destination in the unix network fallback code.
+- Fixes rh#445158.
+
 * Mon Aug 04 2008 Robin Norwood <rnorwood at redhat.com> - 0.2.4-2
 - Fix Source0 URL.
 


--- packagekit-backport-gpg-giant-bodge.patch DELETED ---


--- packagekit-bump-soname.patch DELETED ---




More information about the fedora-extras-commits mailing list