Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package otpclient for openSUSE:Factory checked in at 2022-02-18 23:03:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/otpclient (Old) and /work/SRC/openSUSE:Factory/.otpclient.new.1958 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "otpclient" Fri Feb 18 23:03:07 2022 rev:11 rq:955875 version:2.4.8 Changes: -------- --- /work/SRC/openSUSE:Factory/otpclient/otpclient.changes 2021-11-20 02:40:39.160480704 +0100 +++ /work/SRC/openSUSE:Factory/.otpclient.new.1958/otpclient.changes 2022-02-18 23:03:47.765408845 +0100 @@ -1,0 +2,7 @@ +Fri Feb 18 13:33:37 UTC 2022 - Paolo Stivanin <i...@paolostivanin.com> + +- Update to 2.4.8: + * Fix show next OTP. + * Correctly decode URIs from QR codes. + +------------------------------------------------------------------- Old: ---- v2.4.7.tar.gz v2.4.7.tar.gz.asc New: ---- v2.4.8.tar.gz v2.4.8.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ otpclient.spec ++++++ --- /var/tmp/diff_new_pack.NALqwc/_old 2022-02-18 23:03:48.425408793 +0100 +++ /var/tmp/diff_new_pack.NALqwc/_new 2022-02-18 23:03:48.429408793 +0100 @@ -1,7 +1,7 @@ # # spec file for package otpclient # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define uclname OTPClient Name: otpclient -Version: 2.4.7 +Version: 2.4.8 Release: 0 Summary: Simple GTK+ client for managing TOTP and HOTP License: GPL-3.0-or-later ++++++ v2.4.7.tar.gz -> v2.4.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OTPClient-2.4.7/CMakeLists.txt new/OTPClient-2.4.8/CMakeLists.txt --- old/OTPClient-2.4.7/CMakeLists.txt 2021-11-16 20:22:50.000000000 +0100 +++ new/OTPClient-2.4.8/CMakeLists.txt 2022-02-18 14:26:46.000000000 +0100 @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.5) -project(OTPClient VERSION "2.4.7" LANGUAGES "C") +project(OTPClient VERSION "2.4.8" LANGUAGES "C") configure_file("src/common/version.h.in" "version.h") include_directories(${PROJECT_BINARY_DIR}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OTPClient-2.4.7/data/com.github.paolostivanin.OTPClient.appdata.xml new/OTPClient-2.4.8/data/com.github.paolostivanin.OTPClient.appdata.xml --- old/OTPClient-2.4.7/data/com.github.paolostivanin.OTPClient.appdata.xml 2021-11-16 20:22:50.000000000 +0100 +++ new/OTPClient-2.4.8/data/com.github.paolostivanin.OTPClient.appdata.xml 2022-02-18 14:26:46.000000000 +0100 @@ -83,6 +83,15 @@ </content_rating> <releases> + <release version="2.4.8" date="2022-02-18"> + <description> + <p>OTPClient 2.4.8 brings a couple of fixes</p> + <ul> + <li>fix show next OTP option (issue#234)</li> + <li>correctly decode URIs from QR codes</li> + </ul> + </description> + </release> <release version="2.4.7" date="2021-11-16"> <description> <p>OTPClient 2.4.7 implements some small code optimization</p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OTPClient-2.4.7/src/app.c new/OTPClient-2.4.8/src/app.c --- old/OTPClient-2.4.7/src/app.c 2021-11-16 20:22:50.000000000 +0100 +++ new/OTPClient-2.4.8/src/app.c 2022-02-18 14:26:46.000000000 +0100 @@ -2,7 +2,6 @@ #include <gcrypt.h> #include <jansson.h> #include "otpclient.h" -#include "gui-common.h" #include "gquarks.h" #include "imports.h" #include "common/exports.h" @@ -226,7 +225,7 @@ g_signal_connect (app_data->main_window, "destroy", G_CALLBACK(destroy_cb), app_data); - app_data->source_id = g_timeout_add_full (G_PRIORITY_DEFAULT, 500, traverse_liststore, app_data, NULL); + app_data->source_id = g_timeout_add_full (G_PRIORITY_DEFAULT, 1000, traverse_liststore, app_data, NULL); setup_dbus_listener (app_data); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OTPClient-2.4.7/src/liststore-misc.c new/OTPClient-2.4.8/src/liststore-misc.c --- old/OTPClient-2.4.7/src/liststore-misc.c 2021-11-16 20:22:50.000000000 +0100 +++ new/OTPClient-2.4.8/src/liststore-misc.c 2022-02-18 14:26:46.000000000 +0100 @@ -4,7 +4,6 @@ #include "treeview.h" #include "liststore-misc.h" #include "gquarks.h" -#include "gui-common.h" #include "common/common.h" @@ -106,8 +105,8 @@ if (otp != NULL && g_utf8_strlen (otp, -1) > 4 && g_ascii_strcasecmp (otp_type, "TOTP") == 0) { gboolean short_countdown = (period <= 60 || only_a_minute_left) ? TRUE : FALSE; - gint remaining_seconds = (!short_countdown ? 119 : 59) - g_date_time_get_second (g_date_time_new_now_local()); - gint token_validity = remaining_seconds % period; + guint remaining_seconds = (!short_countdown ? 119 : 59) - g_date_time_get_second (g_date_time_new_now_local()); + guint token_validity = remaining_seconds % period; if (remaining_seconds % period == 60) { short_countdown = TRUE; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OTPClient-2.4.7/src/qrcode-parser.c new/OTPClient-2.4.8/src/qrcode-parser.c --- old/OTPClient-2.4.7/src/qrcode-parser.c 2021-11-16 20:22:50.000000000 +0100 +++ new/OTPClient-2.4.8/src/qrcode-parser.c 2022-02-18 14:26:46.000000000 +0100 @@ -51,7 +51,7 @@ const zbar_symbol_t *symbol = zbar_image_first_symbol (image); for (; symbol; symbol = zbar_symbol_next (symbol)) { - *otpauth_uri = secure_strdup (zbar_symbol_get_data (symbol)); + *otpauth_uri = secure_strdup (g_uri_unescape_string (zbar_symbol_get_data (symbol), NULL)); } zbar_image_destroy (image); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OTPClient-2.4.7/src/treeview.c new/OTPClient-2.4.8/src/treeview.c --- old/OTPClient-2.4.7/src/treeview.c 2021-11-16 20:22:50.000000000 +0100 +++ new/OTPClient-2.4.8/src/treeview.c 2022-02-18 14:26:46.000000000 +0100 @@ -2,7 +2,6 @@ #include <jansson.h> #include "otpclient.h" #include "liststore-misc.h" -#include "gui-common.h" #include "message-dialogs.h" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/OTPClient-2.4.7/src/webcam-add-cb.c new/OTPClient-2.4.8/src/webcam-add-cb.c --- old/OTPClient-2.4.7/src/webcam-add-cb.c 2021-11-16 20:22:50.000000000 +0100 +++ new/OTPClient-2.4.8/src/webcam-add-cb.c 2022-02-18 14:26:46.000000000 +0100 @@ -103,7 +103,7 @@ ConfigData *cfg_data = (ConfigData *)user_data; const zbar_symbol_t *symbol = zbar_image_first_symbol (image); for (; symbol; symbol = zbar_symbol_next (symbol)) { - cfg_data->otp_uri = secure_strdup (zbar_symbol_get_data (symbol)); + cfg_data->otp_uri = secure_strdup (g_uri_unescape_string (zbar_symbol_get_data (symbol), NULL)); cfg_data->qrcode_found = TRUE; } }