[mate-power-manager] 01/02: debian/patches: Add 0002_handle-UP-DEVICE-STATE-UNKNOWN.patch. Handle UP_DEVICE_STATE_UNKNOWN, avoid g_assert_not_reached().

Mike Gabriel sunweaver at debian.org
Fri Mar 6 04:58:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository mate-power-manager.

commit c1aafd8256758ad5eea75c1d12645ddc01a63916
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Thu Mar 5 05:41:59 2015 +0100

    debian/patches: Add 0002_handle-UP-DEVICE-STATE-UNKNOWN.patch. Handle UP_DEVICE_STATE_UNKNOWN, avoid g_assert_not_reached().
---
 .../0002_handle-UP-DEVICE-STATE-UNKNOWN.patch      | 22 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/0002_handle-UP-DEVICE-STATE-UNKNOWN.patch b/debian/patches/0002_handle-UP-DEVICE-STATE-UNKNOWN.patch
new file mode 100644
index 0000000..5565679
--- /dev/null
+++ b/debian/patches/0002_handle-UP-DEVICE-STATE-UNKNOWN.patch
@@ -0,0 +1,22 @@
+From da18a02b5d38cc65709c8e9071a694e2c35cf603 Mon Sep 17 00:00:00 2001
+From: monsta <monsta at inbox.ru>
+Date: Wed, 4 Mar 2015 15:18:00 +0300
+Subject: [PATCH] upower: handle UP_DEVICE_STATE_UNKNOWN, avoid assert
+
+---
+ src/gpm-upower.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/src/gpm-upower.c
++++ b/src/gpm-upower.c
+@@ -652,6 +652,10 @@
+ 		/* TRANSLATORS: battery state */
+ 		state_string = _("Waiting to discharge");
+ 		break;
++	case UP_DEVICE_STATE_UNKNOWN:
++		/* TRANSLATORS: battery state */
++		state_string = _("Unknown state");
++		break;
+ 	default:
+ 		g_assert_not_reached ();
+ 		break;
diff --git a/debian/patches/series b/debian/patches/series
index e7f2ee7..b0c29df 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001_fix-backlight-popup-gtkbuilder.patch
+0002_handle-UP-DEVICE-STATE-UNKNOWN.patch
 2001_omit-gfdl-licensed-help-files.patch
 2002_compile-extra-man-pages.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-power-manager.git



More information about the pkg-mate-commits mailing list