[packages/upower] - rel 3; fix upower-withoutsystemd.patch

arekm arekm at pld-linux.org
Sun Nov 11 22:13:28 CET 2012


commit 0a16a2a3de3562ca89fe132504dfb75a3813d413
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Nov 11 22:13:24 2012 +0100

    - rel 3; fix upower-withoutsystemd.patch

 upower-withoutsystemd.patch | 11 ++++++++---
 upower.spec                 |  2 +-
 2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/upower.spec b/upower.spec
index 13c57b1..e34b685 100644
--- a/upower.spec
+++ b/upower.spec
@@ -2,7 +2,7 @@ Summary:	Power management service
 Summary(pl.UTF-8):	Usługa zarządzania energią
 Name:		upower
 Version:	0.9.18
-Release:	2
+Release:	3
 License:	GPL v2+
 Group:		Libraries
 Source0:	http://upower.freedesktop.org/releases/%{name}-%{version}.tar.xz
diff --git a/upower-withoutsystemd.patch b/upower-withoutsystemd.patch
index 336103e..f97ab34 100644
--- a/upower-withoutsystemd.patch
+++ b/upower-withoutsystemd.patch
@@ -1,13 +1,18 @@
 --- upower-0.9.18/src/linux/up-backend.c.old	2012-07-11 19:11:39.000000000 +0200
 +++ upower-0.9.18/src/linux/up-backend.c	2012-11-11 14:51:43.000000000 +0100
-@@ -603,7 +603,9 @@
+@@ -603,10 +603,11 @@ gboolean
  up_backend_emits_resuming (UpBackend *backend)
  {
  #ifdef HAVE_SYSTEMD
 -	return TRUE;
+-#else
+-	return FALSE;
 +	if (sd_booted ())
 +		return TRUE;
 +	else
- #else
- 	return FALSE;
  #endif
++	return FALSE;
+ }
+ 
+ /**
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/upower.git/commitdiff/0a16a2a3de3562ca89fe132504dfb75a3813d413



More information about the pld-cvs-commit mailing list