[PATCH] udisks: Avoid deprecated polkit_authority_get() function

Martin Pitt martin.pitt at ubuntu.com
Thu Oct 21 00:56:36 PDT 2010


Hello Marti,

Marti Raudsepp [2010-10-20 21:33 +0300]:
> Apparently the polkit_authority_get() function was deprecated in some
> recent PolicyKit release:

In particular, this was done in commit
322513b0d4ee1f0c291495712a7f637132bde149, i. e. in polkit-1 0.97. I
can't currently test this (Debian/Ubuntu is still at 0.96), but I'll
update our polkit package and revisit this later.

In case you want to update the patch, configure.ac needs to bump the
polkit version to 0.97 for this; but I can do that when applying your
patch.

Thanks,

Martin

> +      if (error != NULL)
> +        {
> +          g_critical ("error getting authority reference: %s", error->message);
> +          g_error_free (error);
> +        }
> +      goto error;

(Yay for name overloading of "error" for both a GError and a label ..)

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


More information about the devkit-devel mailing list