Hello community, here is the log from the commit of package wmpowersave checked in at Fri Aug 17 02:13:41 CEST 2007. -------- --- arch/i386/wmpowersave/wmpowersave.changes 2006-10-14 12:49:09.000000000 +0200 +++ /mounts/work_src_done/STABLE/wmpowersave/wmpowersave.changes 2007-08-16 19:29:26.299334000 +0200 @@ -1,0 +2,5 @@ +Thu Aug 16 17:37:36 CEST 2007 - hmacht@suse.de + +- adjust to new liblazy API (novell bug 299733) + +------------------------------------------------------------------- Old: ---- wmpowersave-0.2.8.tar.bz2 New: ---- wmpowersave-0.2.9.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wmpowersave.spec ++++++ --- /var/tmp/diff_new_pack.Y15608/_old 2007-08-17 02:13:31.000000000 +0200 +++ /var/tmp/diff_new_pack.Y15608/_new 2007-08-17 02:13:31.000000000 +0200 @@ -1,7 +1,7 @@ # -# spec file for package wmpowersave (Version 0.2.8) +# spec file for package wmpowersave (Version 0.2.9) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -12,11 +12,11 @@ Name: wmpowersave BuildRequires: WindowMaker-devel dbus-1-glib-devel liblazy powersave-devel xorg-x11 -URL: ftp://ftp.suse.com/pub/people/seife/powersave -Version: 0.2.8 +URL: http://forge.novell.com/modules/xfmod/project/?powersave +Version: 0.2.9 Release: 1 Summary: DockApp GUI frontend for powersave -License: GPL +License: GPL v2 or later Group: System/GUI/Other Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -55,7 +55,9 @@ %_mandir/man1/wmpowersave.1x.gz /usr/share/icons/wmpowersave -%changelog -n wmpowersave +%changelog +* Thu Aug 16 2007 - hmacht@suse.de +- adjust to new liblazy API (novell bug 299733) * Fri Oct 13 2006 - hmacht@suse.de - remove dependency to powersave_dbus library - remove generic D-Bus functions, use liblazy instead ++++++ wmpowersave-0.2.8.tar.bz2 -> wmpowersave-0.2.9.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wmpowersave-0.2.8/wmpowersave.c new/wmpowersave-0.2.9/wmpowersave.c --- old/wmpowersave-0.2.8/wmpowersave.c 2006-10-14 12:35:27.000000000 +0200 +++ new/wmpowersave-0.2.9/wmpowersave.c 2007-08-16 17:37:19.000000000 +0200 @@ -544,7 +544,7 @@ char *governor = NULL; DBusMessage *reply = NULL; - if (liblazy_polkit_is_user_allowed_by_uid(getuid(), "hal-power-cpufreq", NULL) != 1) { + if (liblazy_hal_is_caller_privileged("hal-power-cpufreq") != 1) { fprintf(stderr, "Caller doesn't possess privilege hal-power-cpufreq\n"); return -1; } @@ -598,17 +598,13 @@ int get_ps_capability() { int ps_capability = 0; - if (liblazy_polkit_is_user_allowed_by_uid(getuid(), - POLKIT_SUSPEND_TO_DISK_PRIVILEGE, - NULL) != 1) + if (liblazy_hal_is_caller_privileged(POLKIT_SUSPEND_TO_DISK_PRIVILEGE) != 1) fprintf(stderr, "Caller doesn't possess privilege %s\n", POLKIT_SUSPEND_TO_DISK_PRIVILEGE); else ps_capability |= PS_SUSP_TO_DISK_ENA; - if (liblazy_polkit_is_user_allowed_by_uid(getuid(), - POLKIT_SUSPEND_TO_RAM_PRIVILEGE, - NULL) != 1) + if (liblazy_hal_is_caller_privileged(POLKIT_SUSPEND_TO_RAM_PRIVILEGE) != 1) fprintf(stderr, "Caller doesn't possess privilege %s\n", POLKIT_SUSPEND_TO_RAM_PRIVILEGE); else ps_capability |= PS_SUSP_TO_RAM_ENA; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org