New upstream release

This commit is contained in:
Richard Hughes 2014-08-18 13:18:52 +01:00
parent 60d310ca3c
commit 0e53879f0d
4 changed files with 17 additions and 37 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@ upower-0.9.5.tar.bz2
/upower-0.9.22.tar.xz
/upower-0.9.23.tar.xz
/upower-0.99.0.tar.xz
/upower-0.99.1.tar.xz

View File

@ -1,29 +0,0 @@
From 0d64bbddaa0078ef148d609a3cfad854cf00d7de Mon Sep 17 00:00:00 2001
From: Martin Pitt <martinpitt@gnome.org>
Date: Fri, 8 Nov 2013 14:59:50 +0100
Subject: [PATCH] lib: Fix segfault on getting property when daemon is not
running
This fixes "upower --version" when the daemon is not running, and thus the
client proxy is NULL.
---
libupower-glib/up-client.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c
index 35d7b5d..17fb02d 100644
--- a/libupower-glib/up-client.c
+++ b/libupower-glib/up-client.c
@@ -322,6 +322,9 @@ up_client_get_property (GObject *object,
UpClient *client;
client = UP_CLIENT (object);
+ if (client->priv->proxy == NULL)
+ return;
+
switch (prop_id) {
case PROP_DAEMON_VERSION:
g_value_set_string (value, up_client_glue_get_daemon_version (client->priv->proxy));
--
1.8.4.2

View File

@ -1 +1 @@
14f43bc13353e23e7280863f33ac50d2 upower-0.99.0.tar.xz
e21ea7875e46142e37695850754a296a upower-0.99.1.tar.xz

View File

@ -1,7 +1,7 @@
Summary: Power Management Service
Name: upower
Version: 0.99.0
Release: 7%{?dist}
Version: 0.99.1
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://upower.freedesktop.org/
@ -18,15 +18,11 @@ BuildRequires: libimobiledevice-devel
BuildRequires: glib2-devel >= 2.6.0
BuildRequires: dbus-devel >= 1.2
BuildRequires: dbus-glib-devel >= 0.82
BuildRequires: polkit-devel >= 0.92
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
Requires: polkit >= 0.92
Requires: udev
Requires: gobject-introspection
Patch0: 0001-lib-Fix-segfault-on-getting-property-when-daemon-is-.patch
%description
UPower (formerly DeviceKit-power) provides a daemon, API and command
line tools for managing power devices attached to the system.
@ -49,7 +45,6 @@ Developer documentation for for libupower-glib.
%prep
%setup -q
%patch0 -p1
%build
%configure \
@ -110,6 +105,19 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_datadir}/gtk-doc/html/UPower/*
%changelog
* Mon Aug 18 2014 Richard Hughes <rhughes@redhat.com> - 0.99.1-1
- New upstream release
- Create the history directory at runtime
- Do not log a critical warning when using _set_object_path_sync()
- Fix API doc for up_client_get_on_battery()
- Fix possible UpHistoryItem leak on failure
- Fix segfault on getting property when daemon is not running
- Fix shutdown on boot on some machines
- Fix small memleak on startup with Logitech devices
- Free the obtained device list array after use
- Remove IsDocked property
- Remove unused polkit dependency
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild