Merge lp:~mardy/libsignon-glib/packaging into lp:libsignon-glib

Proposed by Alberto Mardegan
Status: Merged
Approved by: Ken VanDine
Approved revision: no longer in the source branch.
Merged at revision: 138
Proposed branch: lp:~mardy/libsignon-glib/packaging
Merge into: lp:libsignon-glib
Diff against target: 218 lines (+103/-8)
7 files modified
NEWS (+20/-0)
autogen.sh (+4/-2)
configure.ac (+2/-2)
debian/changelog (+10/-2)
libsignon-glib/signon-auth-session.c (+7/-1)
libsignon-glib/signon-identity.c (+2/-1)
tests/check_signon.c (+58/-0)
To merge this branch: bzr merge lp:~mardy/libsignon-glib/packaging
Reviewer Review Type Date Requested Status
Ken VanDine Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+161154@code.launchpad.net

Commit message

New upstream release.

Description of the change

New upstream release.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ken VanDine (ken-vandine) :
review: Approve
lp:~mardy/libsignon-glib/packaging updated
138. By David King

New upstream release.

Approved by Ken VanDine, PS Jenkins bot.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS'
--- NEWS 2012-10-26 13:02:18 +0000
+++ NEWS 2013-04-26 14:25:59 +0000
@@ -1,5 +1,25 @@
1libsignon-glib NEWS1libsignon-glib NEWS
22
3Version 1.9
4-----------
5
6* Invoke the callback when errors occur
7* Add NOCONFIGURE logic to autogen.sh
8* Fix the check for pyoverridesdir for python3
9* Fix a memory leak
10
11Version 1.8
12-----------
13
14* Add signon_auth_session_process_async
15 http://code.google.com/p/accounts-sso/issues/detail?id=115
16* Fix all memory leaks detected by valgrind
17* Set ID before invoking the client callback
18 http://code.google.com/p/accounts-sso/issues/detail?id=132
19* Make tests optional at configure time
20 http://code.google.com/p/accounts-sso/issues/detail?id=124
21* Documentation and build system improvements
22
3Version 1.723Version 1.7
4-----------24-----------
525
626
=== modified file 'autogen.sh'
--- autogen.sh 2012-10-18 08:39:19 +0000
+++ autogen.sh 2013-04-26 14:25:59 +0000
@@ -9,6 +9,8 @@
9 exit 19 exit 1
10}10}
1111
12cd "$srcdir"
12gtkdocize --copy --flavour no-tmpl13gtkdocize --copy --flavour no-tmpl
13autoreconf --install --force14cd "$OLDPWD"
14. $srcdir/configure "$@"15autoreconf --install --force --verbose --warnings=all "$srcdir"
16test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
1517
=== modified file 'configure.ac'
--- configure.ac 2013-01-23 06:25:21 +0000
+++ configure.ac 2013-04-26 14:25:59 +0000
@@ -1,7 +1,7 @@
1dnl Process this file with autoconf to produce a configure script.1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ([2.64])2AC_PREREQ([2.64])
3AC_INIT([libsignon-glib],3AC_INIT([libsignon-glib],
4 [1.8],4 [1.9],
5 [http://code.google.com/p/accounts-sso/issues/entry],5 [http://code.google.com/p/accounts-sso/issues/entry],
6 [libsignon-glib],6 [libsignon-glib],
7 [http://code.google.com/p/accounts-sso/])7 [http://code.google.com/p/accounts-sso/])
@@ -11,7 +11,7 @@
11AC_CONFIG_SRCDIR([libsignon-glib.pc.in])11AC_CONFIG_SRCDIR([libsignon-glib.pc.in])
12AC_CONFIG_MACRO_DIR([m4])12AC_CONFIG_MACRO_DIR([m4])
1313
14AM_INIT_AUTOMAKE([1.11 -Wall nostdinc silent-rules subdir-objects])14AM_INIT_AUTOMAKE([1.11 -Wall check-news nostdinc silent-rules subdir-objects])
1515
16AC_PROG_CC16AC_PROG_CC
17AC_PROG_CC_STDC17AC_PROG_CC_STDC
1818
=== modified file 'debian/changelog'
--- debian/changelog 2013-01-23 02:17:19 +0000
+++ debian/changelog 2013-04-26 14:25:59 +0000
@@ -1,8 +1,16 @@
1libsignon-glib (1.8.1-0ubuntu1) UNRELEASED; urgency=low1libsignon-glib (1.9-0ubuntu1) UNRELEASED; urgency=low
22
3 [ Robert Bruce Park ]
3 * Inline packaging metadata.4 * Inline packaging metadata.
45
5 -- Robert Bruce Park <robert.park@canonical.com> Tue, 22 Jan 2013 18:06:19 -08006 [ Alberto Mardegan ]
7 * New upstream release.
8 - Invoke the callback when errors occur
9 - Add NOCONFIGURE logic to autogen.sh
10 - Fix the check for pyoverridesdir for python3
11 - Fix a memory leak
12
13 -- Alberto Mardegan <alberto.mardegan@canonical.com> Fri, 26 Apr 2013 17:20:58 +0300
614
7libsignon-glib (1.8-0ubuntu1) raring; urgency=low15libsignon-glib (1.8-0ubuntu1) raring; urgency=low
816
917
=== modified file 'libsignon-glib/signon-auth-session.c'
--- libsignon-glib/signon-auth-session.c 2012-11-30 07:37:43 +0000
+++ libsignon-glib/signon-auth-session.c 2013-04-26 14:25:59 +0000
@@ -155,13 +155,17 @@
155 g_simple_async_result_set_op_res_gpointer (res_process, reply,155 g_simple_async_result_set_op_res_gpointer (res_process, reply,
156 (GDestroyNotify)156 (GDestroyNotify)
157 g_variant_unref);157 g_variant_unref);
158 g_simple_async_result_complete (res_process);
159 }158 }
160 else159 else
161 {160 {
162 g_simple_async_result_take_error (res_process, error);161 g_simple_async_result_take_error (res_process, error);
163 }162 }
164163
164 /* We use the idle variant in order to avoid the following critical
165 * message:
166 * g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed
167 */
168 g_simple_async_result_complete_in_idle (res_process);
165 g_object_unref (self);169 g_object_unref (self);
166}170}
167171
@@ -180,6 +184,7 @@
180 {184 {
181 DEBUG ("AuthSessionError: %s", error->message);185 DEBUG ("AuthSessionError: %s", error->message);
182 g_simple_async_result_set_from_error (res, error);186 g_simple_async_result_set_from_error (res, error);
187 g_simple_async_result_complete (res);
183 return;188 return;
184 }189 }
185190
@@ -191,6 +196,7 @@
191 signon_error_quark (),196 signon_error_quark (),
192 SIGNON_ERROR_SESSION_CANCELED,197 SIGNON_ERROR_SESSION_CANCELED,
193 "Authentication session was canceled");198 "Authentication session was canceled");
199 g_simple_async_result_complete (res);
194 return;200 return;
195 }201 }
196202
197203
=== modified file 'libsignon-glib/signon-identity.c'
--- libsignon-glib/signon-identity.c 2013-01-18 12:38:12 +0000
+++ libsignon-glib/signon-identity.c 2013-04-26 14:25:59 +0000
@@ -1359,7 +1359,8 @@
1359 * @user_data: user_data.1359 * @user_data: user_data.
1360 *1360 *
1361 * Asks signond to close all authentication sessions for this1361 * Asks signond to close all authentication sessions for this
1362 * identity.1362 * identity, and to remove any stored secrets associated with it (password and
1363 * authentication tokens).
1363 */1364 */
1364void signon_identity_signout(SignonIdentity *self,1365void signon_identity_signout(SignonIdentity *self,
1365 SignonIdentitySignedOutCb cb,1366 SignonIdentitySignedOutCb cb,
13661367
=== modified file 'tests/check_signon.c'
--- tests/check_signon.c 2012-11-30 07:38:19 +0000
+++ tests/check_signon.c 2013-04-26 14:25:59 +0000
@@ -527,6 +527,63 @@
527END_TEST527END_TEST
528528
529static void529static void
530test_auth_session_process_failure_cb (GObject *source_object,
531 GAsyncResult *res,
532 gpointer user_data)
533{
534 SignonAuthSession *auth_session = SIGNON_AUTH_SESSION (source_object);
535 GVariant *v_reply;
536 GError **error = user_data;
537
538 fail_unless (SIGNON_IS_AUTH_SESSION (source_object));
539
540 v_reply = signon_auth_session_process_finish (auth_session, res, error);
541 fail_unless (v_reply == NULL);
542
543 g_main_loop_quit (main_loop);
544}
545
546START_TEST(test_auth_session_process_failure)
547{
548 SignonAuthSession *auth_session;
549 GVariantBuilder builder;
550 GVariant *session_data;
551 GError *error = NULL;
552
553 g_debug("%s", G_STRFUNC);
554
555 g_type_init ();
556
557 auth_session = signon_auth_session_new (0, "nonexisting-method", &error);
558 fail_unless (auth_session != NULL, "Cannot create AuthSession object");
559 fail_unless (error == NULL);
560
561 g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT);
562 g_variant_builder_add (&builder, "{sv}",
563 "key", g_variant_new_string ("value"));
564
565 session_data = g_variant_builder_end (&builder);
566
567 signon_auth_session_process_async (auth_session,
568 session_data,
569 "mech1",
570 NULL,
571 test_auth_session_process_failure_cb,
572 &error);
573
574 main_loop = g_main_loop_new (NULL, FALSE);
575 g_main_loop_run (main_loop);
576 fail_unless (error != NULL);
577 fail_unless (error->domain == SIGNON_ERROR);
578 fail_unless (error->code == SIGNON_ERROR_METHOD_NOT_KNOWN);
579
580 g_object_unref (auth_session);
581
582 end_test ();
583}
584END_TEST
585
586static void
530test_auth_session_process_after_store_cb (SignonAuthSession *self,587test_auth_session_process_after_store_cb (SignonAuthSession *self,
531 GHashTable *reply,588 GHashTable *reply,
532 const GError *error,589 const GError *error,
@@ -1403,6 +1460,7 @@
1403 tcase_add_test (tc_core, test_auth_session_query_mechanisms);1460 tcase_add_test (tc_core, test_auth_session_query_mechanisms);
1404 tcase_add_test (tc_core, test_auth_session_query_mechanisms_nonexisting);1461 tcase_add_test (tc_core, test_auth_session_query_mechanisms_nonexisting);
1405 tcase_add_test (tc_core, test_auth_session_process);1462 tcase_add_test (tc_core, test_auth_session_process);
1463 tcase_add_test (tc_core, test_auth_session_process_failure);
1406 tcase_add_test (tc_core, test_auth_session_process_after_store);1464 tcase_add_test (tc_core, test_auth_session_process_after_store);
1407 tcase_add_test (tc_core, test_store_credentials_identity);1465 tcase_add_test (tc_core, test_store_credentials_identity);
1408 tcase_add_test (tc_core, test_verify_secret_identity);1466 tcase_add_test (tc_core, test_verify_secret_identity);

Subscribers

People subscribed via source and target branches

to all changes: