Hello community, here is the log from the commit of package mate-power-manager for openSUSE:Factory checked in at 2015-09-03 18:04:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mate-power-manager (Old) and /work/SRC/openSUSE:Factory/.mate-power-manager.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mate-power-manager" Changes: -------- --- /work/SRC/openSUSE:Factory/mate-power-manager/mate-power-manager.changes 2015-08-01 11:35:26.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mate-power-manager.new/mate-power-manager.changes 2015-09-03 18:10:23.000000000 +0200 @@ -1,0 +2,8 @@ +Wed Sep 2 10:42:43 UTC 2015 - sor.ale...@meowr.ru + +- Update to 1.10.2: + * Fix keyboard backlight adjustment for laptops with non-standard + levels. + * Some bugfixes. + +------------------------------------------------------------------- Old: ---- mate-power-manager-1.10.1.tar.xz New: ---- mate-power-manager-1.10.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mate-power-manager.spec ++++++ --- /var/tmp/diff_new_pack.pN8cKF/_old 2015-09-03 18:10:30.000000000 +0200 +++ /var/tmp/diff_new_pack.pN8cKF/_new 2015-09-03 18:10:30.000000000 +0200 @@ -18,7 +18,7 @@ %define _version 1.10 Name: mate-power-manager -Version: 1.10.1 +Version: 1.10.2 Release: 0 Summary: MATE Desktop UPower policy management License: GPL-2.0 @@ -41,7 +41,7 @@ BuildRequires: pkgconfig(unique-1.0) BuildRequires: pkgconfig(upower-glib) Requires: upower -Recommends: %{name}-lang = %{version} +Recommends: %{name}-lang %glib2_gsettings_schema_requires %description ++++++ mate-power-manager-1.10.1.tar.xz -> mate-power-manager-1.10.2.tar.xz ++++++ ++++ 3867 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/ChangeLog new/mate-power-manager-1.10.2/ChangeLog --- old/mate-power-manager-1.10.1/ChangeLog 2015-07-14 15:35:28.000000000 +0200 +++ new/mate-power-manager-1.10.2/ChangeLog 2015-09-01 11:49:36.000000000 +0200 @@ -1,5 +1,56 @@ # Generated by Makefile. Do not edit. +commit 3e99e1412494be782c5efae7fcd59a7a7c8f6b78 +Author: monsta <mon...@inbox.ru> +Date: Tue Sep 1 12:18:58 2015 +0300 + + bump version to 1.10.2 + + NEWS | 9 +++++++++ + configure.ac | 2 +- + 2 files changed, 10 insertions(+), 1 deletion(-) + +commit 67e99922f62204385825dead1246e61228a6a90e +Author: Roy Zhang <pudh4...@gmail.com> +Date: Wed Jul 29 00:38:48 2015 +0800 + + Save copying cost + + src/gpm-prefs-core.c | 9 +++------ + 1 file changed, 3 insertions(+), 6 deletions(-) + +commit 5ec722d8d4ab932f6587f0a5880c9ea7a55b412d +Author: Roy Zhang <pudh4...@gmail.com> +Date: Tue Jul 28 10:01:09 2015 +0800 + + Also free the builder when finalizing + + src/gpm-prefs-core.c | 1 + + 1 file changed, 1 insertion(+) + +commit ce00effcd00b290ce37ffda1087f9bc5ec0cf1ae +Author: Roy Zhang <pudh4...@gmail.com> +Date: Tue Jul 28 09:50:34 2015 +0800 + + Fix memory leaks + + g_variant_get() uses g_strdup() internally, so we should free the string after use. + + src/gpm-prefs-core.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit 02b70065e32f12ddd92d21ef668dc878b272c81f +Author: Mikhail Shevtsov <meso...@gmail.com> +Date: Tue Jul 28 03:35:05 2015 +0300 + + Unable to change keyboard back light #108 + + Fixed issue for laptops with levels less then 10; + + src/gpm-common.c | 10 ++++++++-- + src/gpm-kbd-backlight.c | 5 +++++ + 2 files changed, 13 insertions(+), 2 deletions(-) + commit 56aea45e0a777c9c979dbc47b823e47a00ffb8ad Author: Monsta <mon...@inbox.ru> Date: Tue Jul 14 15:02:27 2015 +0300 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/NEWS new/mate-power-manager-1.10.2/NEWS --- old/mate-power-manager-1.10.1/NEWS 2015-07-14 15:33:36.000000000 +0200 +++ new/mate-power-manager-1.10.2/NEWS 2015-09-01 11:45:50.000000000 +0200 @@ -1,3 +1,12 @@ +Version 1.10.2 +~~~~~~~~~~~~~~ +Released: 2015-09-01 + +* News: + - Fixed keyboard backlight adjustment for laptops with + non-standard levels + - Some bugfixes + Version 1.10.1 ~~~~~~~~~~~~~~ Released: 2015-07-14 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/compile new/mate-power-manager-1.10.2/compile --- old/mate-power-manager-1.10.1/compile 2015-07-14 15:35:03.000000000 +0200 +++ new/mate-power-manager-1.10.2/compile 2015-09-01 11:47:24.000000000 +0200 @@ -3,7 +3,7 @@ scriptversion=2012-10-14.11; # UTC -# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# Copyright (C) 1999-2013 Free Software Foundation, Inc. # Written by Tom Tromey <tro...@cygnus.com>. # # This program is free software; you can redistribute it and/or modify diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/configure.ac new/mate-power-manager-1.10.2/configure.ac --- old/mate-power-manager-1.10.1/configure.ac 2015-07-14 15:33:36.000000000 +0200 +++ new/mate-power-manager-1.10.2/configure.ac 2015-09-01 11:45:50.000000000 +0200 @@ -1,6 +1,6 @@ AC_PREREQ(2.63) -AC_INIT([mate-power-manager], [1.10.1], [http://www.mate-desktop.org/]) +AC_INIT([mate-power-manager], [1.10.2], [http://www.mate-desktop.org/]) AC_CONFIG_SRCDIR(src) AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-xz check-news tar-ustar]) AC_CONFIG_HEADERS([config.h]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/data/mate-power-manager.desktop.in new/mate-power-manager-1.10.2/data/mate-power-manager.desktop.in --- old/mate-power-manager-1.10.1/data/mate-power-manager.desktop.in 2015-07-14 15:35:07.000000000 +0200 +++ new/mate-power-manager-1.10.2/data/mate-power-manager.desktop.in 2015-09-01 11:48:41.000000000 +0200 @@ -10,7 +10,7 @@ X-MATE-Bugzilla-Bugzilla=MATE X-MATE-Bugzilla-Product=mate-power-manager X-MATE-Bugzilla-Component=mate-power-manager -X-MATE-Bugzilla-Version=1.10.1 +X-MATE-Bugzilla-Version=1.10.2 X-MATE-Bugzilla-ExtraInfoScript=mate-power-bugreport.sh #X-MATE-AutoRestart=true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/data/mate-power-preferences.desktop.in new/mate-power-manager-1.10.2/data/mate-power-preferences.desktop.in --- old/mate-power-manager-1.10.1/data/mate-power-preferences.desktop.in 2015-07-14 15:35:07.000000000 +0200 +++ new/mate-power-manager-1.10.2/data/mate-power-preferences.desktop.in 2015-09-01 11:48:41.000000000 +0200 @@ -12,5 +12,5 @@ X-MATE-Bugzilla-Bugzilla=MATE X-MATE-Bugzilla-Product=mate-power-manager X-MATE-Bugzilla-Component=mate-power-preferences -X-MATE-Bugzilla-Version=1.10.1 +X-MATE-Bugzilla-Version=1.10.2 X-MATE-Bugzilla-ExtraInfoScript=mate-power-bugreport.sh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/data/mate-power-statistics.desktop.in new/mate-power-manager-1.10.2/data/mate-power-statistics.desktop.in --- old/mate-power-manager-1.10.1/data/mate-power-statistics.desktop.in 2015-07-14 15:35:07.000000000 +0200 +++ new/mate-power-manager-1.10.2/data/mate-power-statistics.desktop.in 2015-09-01 11:48:41.000000000 +0200 @@ -12,5 +12,5 @@ X-MATE-Bugzilla-Bugzilla=MATE X-MATE-Bugzilla-Product=mate-power-manager X-MATE-Bugzilla-Component=mate-power-statistics -X-MATE-Bugzilla-Version=1.10.1 +X-MATE-Bugzilla-Version=1.10.2 X-Desktop-File-Install-Version=0.10 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/missing new/mate-power-manager-1.10.2/missing --- old/mate-power-manager-1.10.1/missing 2015-07-14 15:35:03.000000000 +0200 +++ new/mate-power-manager-1.10.2/missing 2015-09-01 11:47:24.000000000 +0200 @@ -3,7 +3,7 @@ scriptversion=2013-10-28.13; # UTC -# Copyright (C) 1996-2014 Free Software Foundation, Inc. +# Copyright (C) 1996-2013 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard <pin...@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/src/gpm-common.c new/mate-power-manager-1.10.2/src/gpm-common.c --- old/mate-power-manager-1.10.1/src/gpm-common.c 2015-07-08 23:09:25.000000000 +0200 +++ new/mate-power-manager-1.10.2/src/gpm-common.c 2015-09-01 11:45:50.000000000 +0200 @@ -91,6 +91,9 @@ guint gpm_discrete_from_percent (guint percentage, guint levels) { + /* for levels < 10 min value is 0 */ + gint factor; + factor = levels < 10 ? 0 : 1; /* check we are in range */ if (percentage > 100) return levels; @@ -98,7 +101,7 @@ g_warning ("levels is 0!"); return 0; } - return (guint) ((((gfloat) percentage * (gfloat) (levels - 1)) / 100.0f) + 0.5f); + return (guint) ((((gfloat) percentage * (gfloat) (levels - factor)) / 100.0f) + 0.5f); } /** @@ -113,6 +116,9 @@ guint gpm_discrete_to_percent (guint discrete, guint levels) { + /* for levels < 10 min value is 0 */ + gint factor; + factor = levels < 10 ? 0 : 1; /* check we are in range */ if (discrete > levels) return 100; @@ -120,7 +126,7 @@ g_warning ("levels is 0!"); return 0; } - return (guint) (((gfloat) discrete * (100.0f / (gfloat) (levels - 1))) + 0.5f); + return (guint) (((gfloat) discrete * (100.0f / (gfloat) (levels - factor))) + 0.5f); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/src/gpm-kbd-backlight.c new/mate-power-manager-1.10.2/src/gpm-kbd-backlight.c --- old/mate-power-manager-1.10.1/src/gpm-kbd-backlight.c 2015-07-08 23:09:25.000000000 +0200 +++ new/mate-power-manager-1.10.2/src/gpm-kbd-backlight.c 2015-09-01 11:45:50.000000000 +0200 @@ -121,6 +121,11 @@ goal = gpm_discrete_from_percent (percentage, backlight->priv->max_brightness); scale = percentage > backlight->priv->brightness_percent ? 1 : -1; + /* if percentage change too small force next value */ + if (goal == backlight->priv->brightness) { + goal += percentage == backlight->priv->brightness_percent ? 0 : scale; + } + /* step loop down by 1 for a dimming effect */ while (backlight->priv->brightness != goal) { backlight->priv->brightness += scale; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/src/gpm-prefs-core.c new/mate-power-manager-1.10.2/src/gpm-prefs-core.c --- old/mate-power-manager-1.10.1/src/gpm-prefs-core.c 2015-07-08 23:09:25.000000000 +0200 +++ new/mate-power-manager-1.10.2/src/gpm-prefs-core.c 2015-09-01 11:45:50.000000000 +0200 @@ -712,7 +712,7 @@ &error ); if (error == NULL && res != NULL) { - g_variant_get(res,"(s)", &r); + g_variant_get(res,"(&s)", &r); prefs->priv->can_shutdown = g_strcmp0(r,"yes")==0?TRUE:FALSE; g_variant_unref (res); } else if (error != NULL ) { @@ -728,7 +728,7 @@ &error ); if (error == NULL && res != NULL) { - g_variant_get(res,"(s)", &r); + g_variant_get(res,"(&s)", &r); prefs->priv->can_suspend = g_strcmp0(r,"yes")==0?TRUE:FALSE; g_variant_unref (res); } else if (error != NULL ) { @@ -744,7 +744,7 @@ &error ); if (error == NULL && res != NULL) { - g_variant_get(res,"(s)", &r); + g_variant_get(res,"(&s)", &r); prefs->priv->can_hibernate = g_strcmp0(r,"yes")==0?TRUE:FALSE; g_variant_unref (res); } else if (error != NULL ) { @@ -884,6 +884,7 @@ g_object_unref (prefs->priv->settings); g_object_unref (prefs->priv->client); g_object_unref (prefs->priv->console); + g_object_unref (prefs->priv->builder); G_OBJECT_CLASS (gpm_prefs_parent_class)->finalize (object); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mate-power-manager-1.10.1/test-driver new/mate-power-manager-1.10.2/test-driver --- old/mate-power-manager-1.10.1/test-driver 2015-07-14 15:35:05.000000000 +0200 +++ new/mate-power-manager-1.10.2/test-driver 2015-09-01 11:47:25.000000000 +0200 @@ -3,7 +3,7 @@ scriptversion=2013-07-13.22; # UTC -# Copyright (C) 2011-2014 Free Software Foundation, Inc. +# Copyright (C) 2011-2013 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -106,14 +106,11 @@ # Test script is run here. "$@" >$log_file 2>&1 estatus=$? - if test $enable_hard_errors = no && test $estatus -eq 99; then - tweaked_estatus=1 -else - tweaked_estatus=$estatus + estatus=1 fi -case $tweaked_estatus:$expect_failure in +case $estatus:$expect_failure in 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 0:*) col=$grn res=PASS recheck=no gcopy=no;; 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; @@ -122,12 +119,6 @@ *:*) col=$red res=FAIL recheck=yes gcopy=yes;; esac -# Report the test outcome and exit status in the logs, so that one can -# know whether the test passed or failed simply by looking at the '.log' -# file, without the need of also peaking into the corresponding '.trs' -# file (automake bug#11814). -echo "$res $test_name (exit status: $estatus)" >>$log_file - # Report outcome to console. echo "${col}${res}${std}: $test_name"