Fix the offline updates feature
This commit is contained in:
parent
c8f9c8cabe
commit
d8f9dfeda5
@ -0,0 +1,29 @@
|
|||||||
|
From 9dee649674682f58d9e7d532e3f2ef27078675d7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Richard Hughes <richard@hughsie.com>
|
||||||
|
Date: Tue, 17 Sep 2013 16:08:15 +0100
|
||||||
|
Subject: [PATCH] updates: Do not clear the offline-update if rebooting
|
||||||
|
succeeded
|
||||||
|
|
||||||
|
---
|
||||||
|
plugins/updates/gsd-updates-manager.c | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/plugins/updates/gsd-updates-manager.c b/plugins/updates/gsd-updates-manager.c
|
||||||
|
index 9c8ab79..3aff29a 100644
|
||||||
|
--- a/plugins/updates/gsd-updates-manager.c
|
||||||
|
+++ b/plugins/updates/gsd-updates-manager.c
|
||||||
|
@@ -1324,8 +1324,10 @@ reboot_failed (GObject *source, GAsyncResult *res, gpointer data)
|
||||||
|
GError *error = NULL;
|
||||||
|
|
||||||
|
ret = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source), res, &error);
|
||||||
|
- if (ret)
|
||||||
|
+ if (ret) {
|
||||||
|
g_variant_unref (ret);
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
if (error) {
|
||||||
|
g_warning ("Calling org.gnome.SessionManager.Reboot failed: %s\n", error->message);
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: gnome-settings-daemon
|
Name: gnome-settings-daemon
|
||||||
Version: 3.9.91.1
|
Version: 3.9.91.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The daemon sharing settings from GNOME to GTK+/KDE applications
|
Summary: The daemon sharing settings from GNOME to GTK+/KDE applications
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -17,6 +17,9 @@ Source: http://download.gnome.org/sources/%{name}/3.9/%{name}-%{version}
|
|||||||
# disable wacom for ppc/ppc64 (used on RHEL)
|
# disable wacom for ppc/ppc64 (used on RHEL)
|
||||||
Patch0: %{name}-3.5.4-ppc-no-wacom.patch
|
Patch0: %{name}-3.5.4-ppc-no-wacom.patch
|
||||||
|
|
||||||
|
# taken from upstream to make offline updates actually work
|
||||||
|
Patch1: 0001-updates-Do-not-clear-the-offline-update-if-rebooting.patch
|
||||||
|
|
||||||
BuildRequires: dbus-glib-devel
|
BuildRequires: dbus-glib-devel
|
||||||
BuildRequires: gtk3-devel >= 3.7.8
|
BuildRequires: gtk3-devel >= 3.7.8
|
||||||
BuildRequires: gnome-desktop3-devel >= %{gnome_desktop_version}
|
BuildRequires: gnome-desktop3-devel >= %{gnome_desktop_version}
|
||||||
@ -89,6 +92,7 @@ The %{name}-updates package contains the updates plugin for %{name}
|
|||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
%patch0 -p1 -b .ppc-no-wacom
|
%patch0 -p1 -b .ppc-no-wacom
|
||||||
%endif
|
%endif
|
||||||
|
%patch1 -p1 -b .offline-updates-no-clear
|
||||||
|
|
||||||
autoreconf -i -f
|
autoreconf -i -f
|
||||||
|
|
||||||
@ -274,6 +278,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|||||||
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 17 2013 Richard Hughes <rhughes@redhat.com> - 3.9.91.1-2
|
||||||
|
- Grab a patch from upstream so that the offline updates feature can
|
||||||
|
actually work when reboot returns with success.
|
||||||
|
|
||||||
* Tue Sep 03 2013 Matthias Clasen <mclasen@redhat.com> - 3.9.91.1-1
|
* Tue Sep 03 2013 Matthias Clasen <mclasen@redhat.com> - 3.9.91.1-1
|
||||||
- Update to 3.9.91.1
|
- Update to 3.9.91.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user