rpms/PackageKit/devel pk-upgrades-mistake.patch, NONE, 1.1 PackageKit.spec, 1.54, 1.55

Richard Hughes rhughes at fedoraproject.org
Tue Sep 16 18:33:04 UTC 2008


Author: rhughes

Update of /cvs/pkgs/rpms/PackageKit/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17467

Modified Files:
	PackageKit.spec 
Added Files:
	pk-upgrades-mistake.patch 
Log Message:
* Tue Sep 16 2008 Richard Hughes  <rhughes at redhat.com> - 0.3.3-2
- Fix an error where we didn't connect up the GetDistroUpgrades in
  the new dispatcher code.


pk-upgrades-mistake.patch:

--- NEW FILE pk-upgrades-mistake.patch ---
commit 51b020dca500141a6e78ab549765f09a34ac75fc
Author: Richard Hughes <richard at hughsie.com>
Date:   Tue Sep 16 19:07:39 2008 +0100

    yum: hook up get-distro-upgrades in the dispatcher, and make sure we send a proper error in this case

diff --git a/python/packagekit/backend.py b/python/packagekit/backend.py
index 09fd1da..87abaa7 100644
--- a/python/packagekit/backend.py
+++ b/python/packagekit/backend.py
@@ -468,6 +468,9 @@ class PackageKitBaseBackend:
             pkgs = args[0].split('|')
             self.get_update_detail(pkgs)
             self.finished();
+        elif cmd == 'get-distro-upgrades':
+            self.get_distro_upgrades()
+            self.finished();
         elif cmd == 'get-updates':
             filters = args[0]
             self.get_updates(filters)
@@ -549,9 +552,9 @@ class PackageKitBaseBackend:
             self.what_provides(filters,provides_type,search)
             self.finished();
         else:
-            print "command [%s] is not known" % cmd
-
-
+            errmsg = "command '%s' is not known" % cmd
+            self.error(ERROR_INTERNAL_ERROR,errmsg,exit=False)
+            self.finished();
 
 def exceptionHandler(typ,value,tb,base):
     # Restore original exception handler



Index: PackageKit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/PackageKit/devel/PackageKit.spec,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- PackageKit.spec	16 Sep 2008 16:18:12 -0000	1.54
+++ PackageKit.spec	16 Sep 2008 18:32:34 -0000	1.55
@@ -8,13 +8,16 @@
 Summary:   System daemon that is a DBUS abstraction layer for package management
 Name:      PackageKit
 Version:   0.3.3
-Release:   1%{?dist}
+Release:   2%{?dist}
 License:   GPLv2+
 Group:     System Environment/Libraries
 URL:       http://packagekit.freedesktop.org
 Source0:   http://www.packagekit.org/releases/%{name}-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+# upstream: 51b020dca500141a6e78ab549765f09a34ac75fc
+Patch0:    pk-upgrades-mistake.patch
+
 Requires: dbus >= %{dbus_version}
 Requires: dbus-glib >= %{dbus_glib_version}
 Requires: PackageKit-libs = %{version}-%{release}
@@ -139,6 +142,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure --enable-yum --enable-smart --with-default-backend=yum --disable-local
@@ -269,6 +273,10 @@
 %{_includedir}/*
 
 %changelog
+* Tue Sep 16 2008 Richard Hughes  <rhughes at redhat.com> - 0.3.3-2
+- Fix an error where we didn't connect up the GetDistroUpgrades in
+  the new dispatcher code.
+
 * Tue Sep 16 2008 Richard Hughes  <rhughes at redhat.com> - 0.3.3-1
 - New upstream version
 - Fixes a nasty bug where the daemon could get locked under heavy load




More information about the fedora-extras-commits mailing list