~morphis/snappy-hwe-snaps/+git/upower:import-debian-patches

Last commit made on 2016-12-12
Get this branch:
git clone -b import-debian-patches https://git.launchpad.net/~morphis/snappy-hwe-snaps/+git/upower
Only Simon Fels can upload to this branch. If you are Simon Fels please log in for upload directions.

Branch merges

Branch information

Name:
import-debian-patches
Repository:
lp:~morphis/snappy-hwe-snaps/+git/upower

Recent commits

bf1c0f8... by Martin Pitt

UBUNTU: up-tool: Exit early when connecting to upower fails

This avoids spewing dozens of assertions like

   libupower-glib-CRITICAL **: up_client_get_devices: assertion 'UP_IS_CLIENT (client)' failed
   libupower-glib-CRITICAL **: up_device_get_object_path: assertion 'UP_IS_DEVICE (device)' failed

and useless default values and then exiting successfully (which might confuse
users or scripts trying to parse the output).

Use the new up_client_new_full() constructor so that we get a proper GError.

Side issue in https://bugs.freedesktop.org/show_bug.cgi?id=95350

c09b80a... by Marco Trevisan (Treviño)

UBUNTU: UpKbdBacklight: don't cache the brightness level, always read it from sysfs attrib

When GetBrightness is called it's better to fetch the current value in the
sysfs attribute since many devices doesn't support the emission of brightness
changes to userland, and this could make settings daemons to handle
this value incorrectly.

Add static up_kbd_backlight_brightness_read that is now called during
initialization too, it returns -1 on errors, and use it everywhere we need
to read or check the current brightness.

https://bugs.freedesktop.org/show_bug.cgi?id=95457

68ad445... by Martin Pitt

UBUNTU: lib: Add proper error and cancellable handling to UpClient constructor

A GObject's _init() should never fail or block, but this is currently the case
as up_client_init() connects to upowerd on D-Bus. Convert this to the GInitable
interface and provide a new constructor up_client_new_full() which accepts a
GCancellable and GError, so that clients can do proper error handling
and reporting.

This changes up_client_new() to return NULL when connecting to upowerd fails.
This provides a more well-defined behaviour in this case as clients can check
for this and our methods stop segfaulting as they have checks like

   g_return_val_if_fail (UP_IS_CLIENT (client), ...)

Previously we returned a valid object, but trying to call any method on it
segfaulted due to the NULL D-Bus proxy, so client code had no chance to check
whether the UpClient object was really valid.

https://bugs.freedesktop.org/show_bug.cgi?id=95350

63ae9fc... by Martin Pitt

UBUNTU: daemon: fix get_critical_action()

Fix copy&paste error from e7e9156f that called the wrong _complete_ function
for up_daemon_get_critical_action().

https://bugs.freedesktop.org/show_bug.cgi?id=94262

6f6c79f... by Simon Fels

Remove tarball used to extract upstream source

3b5d217... by Tony Espy

Inital upower 0.99.4 upstream release

Taken from https://upower.freedesktop.org/releases/upower-0.99.4.tar.xz