commit accountsservice for openSUSE:Factory
Hello community, here is the log from the commit of package accountsservice for openSUSE:Factory checked in at Tue May 31 14:45:31 CEST 2011. -------- --- GNOME/accountsservice/accountsservice.changes 2011-05-03 00:23:58.000000000 +0200 +++ /mounts/work_src_done/STABLE/accountsservice/accountsservice.changes 2011-05-19 18:33:02.000000000 +0200 @@ -1,0 +2,8 @@ +Thu May 19 18:08:45 CEST 2011 - dimstar@opensuse.org + +- Update to version 0.6.12: + + The usual pile of race fixes +- Changes from version 0.6.11: + + Add API for adding users to the library. + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- accountsservice-0.6.10.tar.bz2 New: ---- accountsservice-0.6.12.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ accountsservice.spec ++++++ --- /var/tmp/diff_new_pack.ms5kFp/_old 2011-05-31 14:45:00.000000000 +0200 +++ /var/tmp/diff_new_pack.ms5kFp/_new 2011-05-31 14:45:00.000000000 +0200 @@ -18,8 +18,8 @@ Name: accountsservice -Version: 0.6.10 -Release: 2 +Version: 0.6.12 +Release: 1 License: GPLv3+ Summary: D-Bus Service to Manipulate User Account Information Url: http://www.fedoraproject.org/wiki/Features/UserAccountDialog ++++++ accountsservice-0.6.10.tar.bz2 -> accountsservice-0.6.12.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/accountsservice-0.6.10/NEWS new/accountsservice-0.6.12/NEWS --- old/accountsservice-0.6.10/NEWS 2011-04-29 16:49:52.000000000 +0200 +++ new/accountsservice-0.6.12/NEWS 2011-05-19 05:44:31.000000000 +0200 @@ -1,3 +1,13 @@ +Changes in 0.6.12 +================= + +* The usual pile of race fixes + +Changes in 0.6.11 +================= + +* Add API for creating users to the library + Changes in 0.6.10 ================ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/accountsservice-0.6.10/configure new/accountsservice-0.6.12/configure --- old/accountsservice-0.6.10/configure 2011-04-25 18:39:51.000000000 +0200 +++ new/accountsservice-0.6.12/configure 2011-05-19 05:45:35.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for AccountsService 0.6.10. +# Generated by GNU Autoconf 2.68 for AccountsService 0.6.12. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -567,8 +567,8 @@ # Identity of this package. PACKAGE_NAME='AccountsService' PACKAGE_TARNAME='accountsservice' -PACKAGE_VERSION='0.6.10' -PACKAGE_STRING='AccountsService 0.6.10' +PACKAGE_VERSION='0.6.12' +PACKAGE_STRING='AccountsService 0.6.12' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1385,7 +1385,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures AccountsService 0.6.10 to adapt to many kinds of systems. +\`configure' configures AccountsService 0.6.12 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1455,7 +1455,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of AccountsService 0.6.10:";; + short | recursive ) echo "Configuration of AccountsService 0.6.12:";; esac cat <<\_ACEOF @@ -1585,7 +1585,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -AccountsService configure 0.6.10 +AccountsService configure 0.6.12 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1950,7 +1950,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by AccountsService $as_me 0.6.10, which was +It was created by AccountsService $as_me 0.6.12, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2765,7 +2765,7 @@ # Define the identity of the package. PACKAGE='accountsservice' - VERSION='0.6.10' + VERSION='0.6.12' cat >>confdefs.h <<_ACEOF @@ -14089,7 +14089,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by AccountsService $as_me 0.6.10, which was +This file was extended by AccountsService $as_me 0.6.12, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -14155,7 +14155,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -AccountsService config.status 0.6.10 +AccountsService config.status 0.6.12 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/accountsservice-0.6.10/configure.ac new/accountsservice-0.6.12/configure.ac --- old/accountsservice-0.6.10/configure.ac 2011-04-25 18:21:03.000000000 +0200 +++ new/accountsservice-0.6.12/configure.ac 2011-05-19 05:42:53.000000000 +0200 @@ -1,4 +1,4 @@ -AC_INIT([AccountsService],[0.6.10]) +AC_INIT([AccountsService],[0.6.12]) AM_INIT_AUTOMAKE(dist-bzip2 no-dist-gzip foreign) GETTEXT_PACKAGE=accounts-service diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/accountsservice-0.6.10/doc/dbus/AccountsService.xml new/accountsservice-0.6.12/doc/dbus/AccountsService.xml --- old/accountsservice-0.6.10/doc/dbus/AccountsService.xml 2011-04-25 18:39:56.000000000 +0200 +++ new/accountsservice-0.6.12/doc/dbus/AccountsService.xml 2011-05-19 05:45:41.000000000 +0200 @@ -6,8 +6,8 @@ <book id="index"> <bookinfo> - <title>AccountsService 0.6.10 Documentation</title> - <releaseinfo>Version 0.6.10</releaseinfo> + <title>AccountsService 0.6.12 Documentation</title> + <releaseinfo>Version 0.6.12</releaseinfo> <authorgroup> <author> <firstname>Matthias</firstname> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/accountsservice-0.6.10/src/daemon.c new/accountsservice-0.6.12/src/daemon.c --- old/accountsservice-0.6.10/src/daemon.c 2011-04-25 18:43:21.000000000 +0200 +++ new/accountsservice-0.6.12/src/daemon.c 2011-05-19 05:39:12.000000000 +0200 @@ -88,6 +88,7 @@ enum { USER_ADDED, USER_REMOVED, + CK_HISTORY_LOADED, LAST_SIGNAL }; @@ -204,6 +205,16 @@ 1, DBUS_TYPE_G_OBJECT_PATH); + signals[CK_HISTORY_LOADED] = g_signal_new ("ck-history-loaded", + G_OBJECT_CLASS_TYPE (klass), + G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, + 0, + NULL, + NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0); + dbus_g_object_type_install_info (TYPE_DAEMON, &dbus_glib_daemon_object_info); @@ -393,6 +404,7 @@ if (done) { daemon->priv->ck_history_id = 0; + g_signal_emit (daemon, signals[CK_HISTORY_LOADED], 0); return FALSE; } @@ -1045,6 +1057,18 @@ return FALSE; } +static void +on_ck_history_loaded (Daemon *daemon, + ListUserData *data) +{ + /* ck-history loaded, so finish pending ListCachedUsers call */ + g_idle_add (finish_list_cached_users, data); + + g_signal_handlers_disconnect_by_func (daemon, + on_ck_history_loaded, + data); +} + gboolean daemon_list_cached_users (Daemon *daemon, DBusGMethodInvocation *context) @@ -1053,8 +1077,13 @@ data = list_user_data_new (daemon, context); - if (daemon->priv->reload_id > 0) { - /* reload in progress, wait */ + if (daemon->priv->ck_history_id > 0) { + /* loading ck-history, wait for it */ + g_signal_connect (daemon, "ck-history-loaded", + G_CALLBACK (on_ck_history_loaded), + data); + } else if (daemon->priv->reload_id > 0) { + /* reload in progress, wait a bit */ g_idle_add (finish_list_cached_users, data); } else { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/accountsservice-0.6.10/src/libaccountsservice/accountsservice.pc new/accountsservice-0.6.12/src/libaccountsservice/accountsservice.pc --- old/accountsservice-0.6.10/src/libaccountsservice/accountsservice.pc 2011-04-25 18:39:56.000000000 +0200 +++ new/accountsservice-0.6.12/src/libaccountsservice/accountsservice.pc 2011-05-19 05:45:41.000000000 +0200 @@ -5,6 +5,6 @@ Name: Accounts Service Description: Client Library for communicating with accounts service -Version: 0.6.10 +Version: 0.6.12 Libs: -L${libdir} -laccountsservice Cflags: -I${includedir}/accountsservice-1.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/accountsservice-0.6.10/src/libaccountsservice/act-user-manager.c new/accountsservice-0.6.12/src/libaccountsservice/act-user-manager.c --- old/accountsservice-0.6.10/src/libaccountsservice/act-user-manager.c 2011-04-27 20:34:21.000000000 +0200 +++ new/accountsservice-0.6.12/src/libaccountsservice/act-user-manager.c 2011-05-19 05:39:12.000000000 +0200 @@ -572,10 +572,9 @@ g_debug ("Failed to identify the seat of the " "current session"); } - unload_seat (manager); - g_debug ("ActUserManager: GetSeatId call failed, so trying to set loaded property"); - maybe_set_is_loaded (manager); + g_debug ("ActUserManager: GetSeatId call failed, so unloading seat"); + unload_seat (manager); return; } @@ -878,10 +877,15 @@ ActUserManager *manager = ACT_USER_MANAGER (user_data); ActUser *user; - g_debug ("ActUserManager: user removed from accounts service with object path %s", object_path); - user = g_hash_table_lookup (manager->priv->users_by_object_path, object_path); + if (user == NULL) { + g_debug ("ActUserManager: ignoring untracked user %s", object_path); + return; + } else { + g_debug ("ActUserManager: tracked user %s removed from accounts service", object_path); + } + manager->priv->new_users = g_slist_remove (manager->priv->new_users, user); remove_user (manager, user); @@ -919,8 +923,6 @@ g_debug ("Failed to identify the current session"); } unload_seat (manager); - g_debug ("ActUserManager: no current session, so trying to set loaded property"); - maybe_set_is_loaded (manager); return; } @@ -1214,8 +1216,13 @@ * * (see on_new_user_loaded) */ - g_debug ("ActUserManager: ListCachedUsers finished, will set loaded property after list is fully loaded"); - g_ptr_array_foreach (paths, (GFunc)add_new_inhibiting_user_for_object_path, manager); + if (paths->len > 0) { + g_debug ("ActUserManager: ListCachedUsers finished, will set loaded property after list is fully loaded"); + g_ptr_array_foreach (paths, (GFunc)add_new_inhibiting_user_for_object_path, manager); + } else { + g_debug ("ActUserManager: ListCachedUsers finished with empty list, maybe setting loaded property now"); + maybe_set_is_loaded (manager); + } g_ptr_array_foreach (paths, (GFunc)g_free, NULL); g_ptr_array_free (paths, TRUE); @@ -1544,6 +1551,9 @@ g_free (manager->priv->seat.session_id); manager->priv->seat.session_id = NULL; + + g_debug ("ActUserManager: seat unloaded, so trying to set loaded property"); + maybe_set_is_loaded (manager); } static void @@ -2282,3 +2292,44 @@ return ACT_USER_MANAGER (user_manager_object); } + + +gboolean +act_user_manager_create_user (ActUserManager *manager, + const char *username, + const char *fullname, + ActUserAccountType accounttype) +{ + GError *error; + gboolean res; + gchar *path; + + g_debug ("ActUserManager: Creating user '%s', '%s', %d", + username, fullname, accounttype); + + g_assert (manager->priv->accounts_proxy != NULL); + + error = NULL; + res = dbus_g_proxy_call (manager->priv->accounts_proxy, + "CreateUser", + &error, + G_TYPE_STRING, username, + G_TYPE_STRING, fullname, + G_TYPE_INT, accounttype, + G_TYPE_INVALID, + DBUS_TYPE_G_OBJECT_PATH, &path, + G_TYPE_INVALID); + if (! res) { + if (error != NULL) { + g_warning ("Failed to create user: %s", error->message); + g_error_free (error); + } else { + g_warning ("Failed to create user"); + } + goto out; + } +out: + g_free (path); + + return res; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/accountsservice-0.6.10/src/libaccountsservice/act-user-manager.h new/accountsservice-0.6.12/src/libaccountsservice/act-user-manager.h --- old/accountsservice-0.6.10/src/libaccountsservice/act-user-manager.h 2011-02-01 17:01:39.000000000 +0100 +++ new/accountsservice-0.6.12/src/libaccountsservice/act-user-manager.h 2011-05-19 05:39:11.000000000 +0200 @@ -83,6 +83,12 @@ gboolean act_user_manager_goto_login_session (ActUserManager *manager); +gboolean act_user_manager_create_user (ActUserManager *manager, + const char *username, + const char *fullname, + ActUserAccountType accounttype); + + G_END_DECLS #endif /* __ACT_USER_MANAGER_H__ */ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de