From e4494ea4465e8ea98ed067ee86069969fd26286d Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 3 Oct 2011 15:26:54 +0200 Subject: [PATCH] upower: update to upower-0.9.14 Signed-off-by: Stephan Raue --- packages/sysutils/upower/meta | 2 +- ...end_supports_sleep_state_return_code.patch | 30 ------------------- 2 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 packages/sysutils/upower/patches/upower-0.9.13-Fix_linux-up_backend_supports_sleep_state_return_code.patch diff --git a/packages/sysutils/upower/meta b/packages/sysutils/upower/meta index 11f7a97cd8..b346d5bb80 100644 --- a/packages/sysutils/upower/meta +++ b/packages/sysutils/upower/meta @@ -19,7 +19,7 @@ ################################################################################ PKG_NAME="upower" -PKG_VERSION="0.9.13" +PKG_VERSION="0.9.14" PKG_REV="1" PKG_ARCH="any" PKG_LICENSE="GPL" diff --git a/packages/sysutils/upower/patches/upower-0.9.13-Fix_linux-up_backend_supports_sleep_state_return_code.patch b/packages/sysutils/upower/patches/upower-0.9.13-Fix_linux-up_backend_supports_sleep_state_return_code.patch deleted file mode 100644 index c52c591302..0000000000 --- a/packages/sysutils/upower/patches/upower-0.9.13-Fix_linux-up_backend_supports_sleep_state_return_code.patch +++ /dev/null @@ -1,30 +0,0 @@ -From ff23a9c6e229cd8a2c4226fdc281ab5853d6da35 Mon Sep 17 00:00:00 2001 -From: Christian Seiler -Date: Thu, 22 Sep 2011 15:34:45 +0000 -Subject: Fix linux up_backend_supports_sleep_state() return code. - -Under Linux, regardless of the exit code of /usr/bin/pm-is-supported, it will -always set CanSuspend and CanHibernate to true due to a logic error in -up_backend_supports_sleep_state in src/linux/up-backend.c: The 'ret' variable -is re-used for the return code without being re-initialized to false after the -call to g_spawn_command_line_sync. - -Signed-off-by: Martin Pitt ---- -diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c -index 14435be..d126b5b 100644 ---- a/src/linux/up-backend.c -+++ b/src/linux/up-backend.c -@@ -361,8 +361,8 @@ up_backend_supports_sleep_state (const gchar *state) - g_error_free (error); - goto out; - } -- if (WIFEXITED(exit_status) && (WEXITSTATUS(exit_status) == EXIT_SUCCESS)) -- ret = TRUE; -+ ret = (WIFEXITED(exit_status) && (WEXITSTATUS(exit_status) == EXIT_SUCCESS)); -+ - out: - g_free (command); - return ret; --- -cgit v0.9.0.2-2-gbebe