Author: patrys Date: Mon May 25 09:20:08 2009 GMT Module: packages Tag: HEAD ---- Log message: - add patch not to lose polling upon unknown battery state - rel 2
---- Files affected: packages/DeviceKit-power: DeviceKit-power.spec (1.2 -> 1.3) , DeviceKit-power-unknown-state.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/DeviceKit-power/DeviceKit-power.spec diff -u packages/DeviceKit-power/DeviceKit-power.spec:1.2 packages/DeviceKit-power/DeviceKit-power.spec:1.3 --- packages/DeviceKit-power/DeviceKit-power.spec:1.2 Tue Mar 31 10:51:45 2009 +++ packages/DeviceKit-power/DeviceKit-power.spec Mon May 25 11:20:03 2009 @@ -3,11 +3,12 @@ Summary(pl.UTF-8): Usługa zarządzania energią Name: DeviceKit-power Version: 007 -Release: 1 +Release: 2 License: GPL v2+ Group: Libraries Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz # Source0-md5: 4b1159374f36e23fe7d920f934076269 +Patch0: %{name}-unknown-state.patch BuildRequires: DeviceKit-devel >= 003 BuildRequires: PolicyKit-devel >= 0.8 BuildRequires: autoconf >= 2.60 @@ -59,6 +60,7 @@ %prep %setup -q +%patch0 -p1 %build %{__intltoolize} @@ -124,6 +126,10 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.3 2009/05/25 09:20:03 patrys +- add patch not to lose polling upon unknown battery state +- rel 2 + Revision 1.2 2009/03/31 08:51:45 patrys - 007 - fixes CVE-2008-4311 ================================================================ Index: packages/DeviceKit-power/DeviceKit-power-unknown-state.patch diff -u /dev/null packages/DeviceKit-power/DeviceKit-power-unknown-state.patch:1.1 --- /dev/null Mon May 25 11:20:09 2009 +++ packages/DeviceKit-power/DeviceKit-power-unknown-state.patch Mon May 25 11:20:03 2009 @@ -0,0 +1,22 @@ +From 648ca7103439e44e7f83035fa701994a408f8d01 Mon Sep 17 00:00:00 2001 +From: Richard Hughes <[email protected]> +Date: Wed, 13 May 2009 16:46:58 +0000 +Subject: Continue to poll when power supply device is marked unknown. Might fix rh#495493 + +--- +diff --git a/src/dkp-supply.c b/src/dkp-supply.c +index 7a5e8e5..cb6db00 100644 +--- a/src/dkp-supply.c ++++ b/src/dkp-supply.c +@@ -548,7 +548,8 @@ dkp_supply_refresh (DkpDevice *device) + * if we are charging or discharging */ + g_object_get (device, "state", &state, NULL); + if (state == DKP_DEVICE_STATE_CHARGING || +- state == DKP_DEVICE_STATE_DISCHARGING) ++ state == DKP_DEVICE_STATE_DISCHARGING || ++ state == DKP_DEVICE_STATE_UNKNOWN) + supply->priv->poll_timer_id = + g_timeout_add_seconds (DKP_SUPPLY_REFRESH_TIMEOUT, + (GSourceFunc) dkp_supply_poll_battery, supply); +-- +cgit v0.8.2 ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/DeviceKit-power/DeviceKit-power.spec?r1=1.2&r2=1.3&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
