Hello community, here is the log from the commit of package gpaste for openSUSE:Factory checked in at 2017-08-19 10:56:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gpaste (Old) and /work/SRC/openSUSE:Factory/.gpaste.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gpaste" Sat Aug 19 10:56:28 2017 rev:16 rq:517596 version:3.24.2 Changes: -------- --- /work/SRC/openSUSE:Factory/gpaste/gpaste.changes 2017-04-28 09:14:34.447330252 +0200 +++ /work/SRC/openSUSE:Factory/.gpaste.new/gpaste.changes 2017-08-19 10:56:33.055329050 +0200 @@ -1,0 +2,10 @@ +Wed Aug 16 17:33:41 UTC 2017 - [email protected] + +- Update to version 3.24.2: + + `gpaste-client add` now accepts reading from stdin. + + You can't have two passwords with the same name in the history + anymore. + + Prevent a bug adding a password both as password and text in + some cases. + +------------------------------------------------------------------- Old: ---- gpaste-3.24.1.tar.xz New: ---- gpaste-3.24.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gpaste.spec ++++++ --- /var/tmp/diff_new_pack.sSPIvH/_old 2017-08-19 10:56:34.339148040 +0200 +++ /var/tmp/diff_new_pack.sSPIvH/_new 2017-08-19 10:56:34.343147476 +0200 @@ -18,7 +18,7 @@ Name: gpaste -Version: 3.24.1 +Version: 3.24.2 Release: 0 Summary: Clipboard management system for GNOME License: BSD-2-Clause ++++++ gpaste-3.24.1.tar.xz -> gpaste-3.24.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/ChangeLog new/gpaste-3.24.2/ChangeLog --- old/gpaste-3.24.1/ChangeLog 2017-04-08 13:45:49.000000000 +0200 +++ new/gpaste-3.24.2/ChangeLog 2017-05-19 17:34:55.000000000 +0200 @@ -1,6 +1,78 @@ # Generated by Makefile. Do not edit. +commit a8ebd1a95ae416f942f3b4e91b79b1f605d6588b +Merge: 431d1613 f408c554 +Author: Marc-Antoine Perennou <[email protected]> +Date: Tue Apr 11 17:13:48 2017 +0200 + + Merge branch 'gpaste-3.22' into gpaste-3.24 + + * gpaste-3.22: + daemon: don't allow setting an item as password with an already taken name + core: don't allow setting an item as password with an already taken name + +commit f408c55417b1409e0d5775490936aa8d4ec30655 +Author: Marc-Antoine Perennou <[email protected]> +Date: Tue Apr 11 17:13:08 2017 +0200 + + daemon: don't allow setting an item as password with an already taken name + + Signed-off-by: Marc-Antoine Perennou <[email protected]> + +commit ceb5ff7df3cdebaf6fdba824aed557f57f817a8e +Author: Marc-Antoine Perennou <[email protected]> +Date: Tue Apr 11 17:12:59 2017 +0200 + + core: don't allow setting an item as password with an already taken name + + Signed-off-by: Marc-Antoine Perennou <[email protected]> + +commit 431d1613c798c92adc8d69e2eefdc79d55ffa73e +Merge: 772bfc51 302cc088 +Author: Marc-Antoine Perennou <[email protected]> +Date: Tue Apr 11 16:30:09 2017 +0200 + + Merge branch 'gpaste-3.22' into gpaste-3.24 + + * gpaste-3.22: + core: beef up item comparison + client: support reading from stdin for add + +commit 302cc0884de6120f63902dfc553179fdf665f94e +Author: Marc-Antoine Perennou <[email protected]> +Date: Tue Apr 11 16:28:20 2017 +0200 + + core: beef up item comparison + + if B is a subclass a A, A.equals(B) can be true when B.equals(A) isn't, hence check both + + Signed-off-by: Marc-Antoine Perennou <[email protected]> + +commit 0374004b2cb075d83f4ccd3beb205dae487e987e +Author: Marc-Antoine Perennou <[email protected]> +Date: Sat Apr 8 14:08:25 2017 +0200 + + client: support reading from stdin for add + + Signed-off-by: Marc-Antoine Perennou <[email protected]> + +commit 772bfc513fa9388ef2ba158b1904b6ca1c7374c7 +Author: Marc-Antoine Perennou <[email protected]> +Date: Sat Apr 8 14:08:25 2017 +0200 + + client: support reading from stdin for add + + Signed-off-by: Marc-Antoine Perennou <[email protected]> + +commit 0f5eac25151af8874f3bd415b209de2c0efb473d +Author: Marc-Antoine Perennou <[email protected]> +Date: Sat Apr 8 13:46:37 2017 +0200 + + Release GPaste 3.24.1 + + Signed-off-by: Marc-Antoine Perennou <[email protected]> + commit e0ed322ddf828a0dee03764582901ddba60c3d44 Author: Marc-Antoine Perennou <[email protected]> Date: Sat Apr 8 13:44:19 2017 +0200 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/NEWS new/gpaste-3.24.2/NEWS --- old/gpaste-3.24.1/NEWS 2017-04-08 13:45:00.000000000 +0200 +++ new/gpaste-3.24.2/NEWS 2017-05-19 17:33:18.000000000 +0200 @@ -1,3 +1,10 @@ +NEW in 3.24.2 (19/05/2017) +============= + +- `gpaste-client add` now accepts reading from stdin +- you can't have two passwords with the same name in the history anymore +- prevent a bug adding a password both as password and text in come case + NEW in 3.24.1 (08/04/2017) ============= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/README.md new/gpaste-3.24.2/README.md --- old/gpaste-3.24.1/README.md 2017-04-08 13:45:26.000000000 +0200 +++ new/gpaste-3.24.2/README.md 2017-05-19 17:28:58.000000000 +0200 @@ -39,6 +39,6 @@ You can see everything I'll post about GPaste [there](http://www.imagination-land.org/tags/GPaste.html). -Latest release for GNOME 3.24 is: [GPaste 3.24.1](http://www.imagination-land.org/posts/2017-04-08-gpaste-3.24.1-released.html). +Latest release for GNOME 3.24 is: [GPaste 3.24.2](http://www.imagination-land.org/posts/2017-05-19-gpaste-3.24.2-released.html). -Direct link to download: <http://www.imagination-land.org/files/gpaste/gpaste-3.24.1.tar.xz> +Direct link to download: <http://www.imagination-land.org/files/gpaste/gpaste-3.24.2.tar.xz> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/configure new/gpaste-3.24.2/configure --- old/gpaste-3.24.1/configure 2017-04-08 13:45:43.000000000 +0200 +++ new/gpaste-3.24.2/configure 2017-05-19 17:29:11.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for GPaste 3.24.1. +# Generated by GNU Autoconf 2.69 for GPaste 3.24.2. # # Report bugs to <[email protected]>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='GPaste' PACKAGE_TARNAME='gpaste' -PACKAGE_VERSION='3.24.1' -PACKAGE_STRING='GPaste 3.24.1' +PACKAGE_VERSION='3.24.2' +PACKAGE_STRING='GPaste 3.24.2' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='' @@ -1433,7 +1433,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 GPaste 3.24.1 to adapt to many kinds of systems. +\`configure' configures GPaste 3.24.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1503,7 +1503,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of GPaste 3.24.1:";; + short | recursive ) echo "Configuration of GPaste 3.24.2:";; esac cat <<\_ACEOF @@ -1681,7 +1681,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -GPaste configure 3.24.1 +GPaste configure 3.24.2 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2104,7 +2104,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by GPaste $as_me 3.24.1, which was +It was created by GPaste $as_me 3.24.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2457,7 +2457,7 @@ -LIBGPASTE_LT_VERSION="9:1:0" +LIBGPASTE_LT_VERSION="9:2:0" @@ -12264,7 +12264,7 @@ # Define the identity of the package. PACKAGE='gpaste' - VERSION='3.24.1' + VERSION='3.24.2' cat >>confdefs.h <<_ACEOF @@ -18574,7 +18574,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by GPaste $as_me 3.24.1, which was +This file was extended by GPaste $as_me 3.24.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -18640,7 +18640,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -GPaste config.status 3.24.1 +GPaste config.status 3.24.2 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/configure.ac new/gpaste-3.24.2/configure.ac --- old/gpaste-3.24.1/configure.ac 2017-04-08 13:44:39.000000000 +0200 +++ new/gpaste-3.24.2/configure.ac 2017-05-19 17:28:33.000000000 +0200 @@ -2,14 +2,14 @@ ## ## Copyright (c) 2010-2017, Marc-Antoine Perennou <[email protected]> -m4_define([gpaste_version], [3.24.1]) +m4_define([gpaste_version], [3.24.2]) # Update gpaste_lt_version before each release (and only then) # The format is C:R:A (current revision age) # - If any interface has been added, ‘C:R:A’ becomes ‘C+1:0:A+1’. # - If any interface has been removed or modified, ‘C:R:A’ becomes ‘C+1:0:0’. # - Otherwise, ‘C:R:A’ becomes ‘C:R+1:A’. -m4_define([gpaste_lt_version], [9:1:0]) +m4_define([gpaste_lt_version], [9:2:0]) # Build system requirements m4_define([autoconf_required], [2.69]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/po/GPaste.pot new/gpaste-3.24.2/po/GPaste.pot --- old/gpaste-3.24.1/po/GPaste.pot 2017-04-08 13:45:47.000000000 +0200 +++ new/gpaste-3.24.2/po/GPaste.pot 2017-05-19 17:29:16.000000000 +0200 @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: gpaste 3.24.1\n" +"Project-Id-Version: gpaste 3.24.2\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2017-04-08 13:45+0200\n" +"POT-Creation-Date: 2017-05-19 17:29+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" Binary files old/gpaste-3.24.1/po/de.gmo and new/gpaste-3.24.2/po/de.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/po/de.po new/gpaste-3.24.2/po/de.po --- old/gpaste-3.24.1/po/de.po 2017-04-08 13:45:47.000000000 +0200 +++ new/gpaste-3.24.2/po/de.po 2017-05-19 17:29:16.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: GPaste\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2017-04-08 13:45+0200\n" +"POT-Creation-Date: 2017-05-19 17:29+0200\n" "PO-Revision-Date: 2014-03-27 21:03+0100\n" "Last-Translator: Christian Kluge <[email protected]>\n" "Language-Team: \n" Binary files old/gpaste-3.24.1/po/es.gmo and new/gpaste-3.24.2/po/es.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/po/es.po new/gpaste-3.24.2/po/es.po --- old/gpaste-3.24.1/po/es.po 2017-04-08 13:45:47.000000000 +0200 +++ new/gpaste-3.24.2/po/es.po 2017-05-19 17:29:16.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: GPaste\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2017-04-08 13:45+0200\n" +"POT-Creation-Date: 2017-05-19 17:29+0200\n" "PO-Revision-Date: 2011-11-20 16:30+0100\n" "Last-Translator: Antonio Trujillo <[email protected]>\n" "Language-Team: Spanish\n" Binary files old/gpaste-3.24.1/po/fr.gmo and new/gpaste-3.24.2/po/fr.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/po/fr.po new/gpaste-3.24.2/po/fr.po --- old/gpaste-3.24.1/po/fr.po 2017-04-08 13:45:48.000000000 +0200 +++ new/gpaste-3.24.2/po/fr.po 2017-05-19 17:29:16.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: GPaste\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2017-04-08 13:45+0200\n" +"POT-Creation-Date: 2017-05-19 17:29+0200\n" "PO-Revision-Date: 2011-01-25 16:05+0100\n" "Last-Translator: Marc-Antoine Perennou <[email protected]>\n" "Language-Team: French\n" Binary files old/gpaste-3.24.1/po/nl_NL.gmo and new/gpaste-3.24.2/po/nl_NL.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/po/nl_NL.po new/gpaste-3.24.2/po/nl_NL.po --- old/gpaste-3.24.1/po/nl_NL.po 2017-04-08 13:45:48.000000000 +0200 +++ new/gpaste-3.24.2/po/nl_NL.po 2017-05-19 17:29:16.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: GPaste\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2017-04-08 13:45+0200\n" +"POT-Creation-Date: 2017-05-19 17:29+0200\n" "PO-Revision-Date: 2017-03-17 17:38+0100\n" "Last-Translator: Heimen Stoffels <[email protected]>\n" "Language-Team: Vistaus <[email protected]>\n" Binary files old/gpaste-3.24.1/po/pt_BR.gmo and new/gpaste-3.24.2/po/pt_BR.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/po/pt_BR.po new/gpaste-3.24.2/po/pt_BR.po --- old/gpaste-3.24.1/po/pt_BR.po 2017-04-08 13:45:48.000000000 +0200 +++ new/gpaste-3.24.2/po/pt_BR.po 2017-05-19 17:29:16.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: GPaste\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2017-04-08 13:45+0200\n" +"POT-Creation-Date: 2017-05-19 17:29+0200\n" "PO-Revision-Date: 2015-10-10 20:03-0300\n" "Last-Translator: Elder Marco <[email protected]>\n" "Language-Team: \n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/src/client/gpaste-client.c new/gpaste-3.24.2/src/client/gpaste-client.c --- old/gpaste-3.24.1/src/client/gpaste-client.c 2017-03-17 17:48:50.000000000 +0100 +++ new/gpaste-3.24.2/src/client/gpaste-client.c 2017-04-11 17:13:34.000000000 +0200 @@ -706,8 +706,8 @@ { 1, "q", 0, TRUE, g_paste_stop }, { 1, "quit", 0, TRUE, g_paste_stop }, { 1, "ui", 0, FALSE, g_paste_ui }, - { 2, "a", 0, TRUE, g_paste_add }, - { 2, "add", 0, TRUE, g_paste_add }, + { 1, "a", 1, TRUE, g_paste_add }, + { 1, "add", 1, TRUE, g_paste_add }, { 2, "ap", 1, TRUE, g_paste_add_password }, { 2, "add-password", 1, TRUE, g_paste_add_password }, { 2, "bh", 1, TRUE, g_paste_backup_history }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/src/libgpaste/core/gpaste-history.c new/gpaste-3.24.2/src/libgpaste/core/gpaste-history.c --- old/gpaste-3.24.1/src/libgpaste/core/gpaste-history.c 2017-04-07 17:13:41.000000000 +0200 +++ new/gpaste-3.24.2/src/libgpaste/core/gpaste-history.c 2017-04-11 17:14:21.000000000 +0200 @@ -567,6 +567,30 @@ g_paste_history_selected (self, new); } +static GPasteItem * +_g_paste_history_private_get_password (const GPasteHistoryPrivate *priv, + const gchar *name, + guint64 *index) +{ + guint64 idx = 0; + + for (GList *h = priv->history; h; h = g_list_next (h), ++idx) + { + GPasteItem *i = h->data; + if (_G_PASTE_IS_PASSWORD_ITEM (i) && + g_paste_str_equal (g_paste_password_item_get_name ((GPastePasswordItem *) i), name)) + { + if (index) + *index = idx; + return i; + } + } + + if (index) + *index = -1; + return NULL; +} + /** * g_paste_history_set_password: * @self: a #GPasteHistory instance @@ -595,36 +619,13 @@ GPasteItem *item = todel->data; g_return_if_fail (_G_PASTE_IS_TEXT_ITEM (item) && g_paste_str_equal (g_paste_item_get_kind (item), "Text")); + g_return_if_fail (!_g_paste_history_private_get_password (priv, name, NULL)); GPasteItem *password = g_paste_password_item_new (name, g_paste_item_get_real_value (item)); _g_paste_history_replace (self, index, password, todel); } -static GPasteItem * -_g_paste_history_private_get_password (const GPasteHistoryPrivate *priv, - const gchar *name, - guint64 *index) -{ - guint64 idx = 0; - - for (GList *h = priv->history; h; h = g_list_next (h), ++idx) - { - GPasteItem *i = h->data; - if (_G_PASTE_IS_PASSWORD_ITEM (i) && - g_paste_str_equal (g_paste_password_item_get_name ((GPastePasswordItem *) i), name)) - { - if (index) - *index = idx; - return i; - } - } - - if (index) - *index = -1; - return NULL; -} - /** * g_paste_history_get_password: * @self: a #GPasteHistory instance diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/src/libgpaste/core/gpaste-item.c new/gpaste-3.24.2/src/libgpaste/core/gpaste-item.c --- old/gpaste-3.24.1/src/libgpaste/core/gpaste-item.c 2017-04-07 17:16:56.000000000 +0200 +++ new/gpaste-3.24.2/src/libgpaste/core/gpaste-item.c 2017-04-11 17:13:34.000000000 +0200 @@ -136,7 +136,7 @@ if (self == other) return TRUE; - return _G_PASTE_ITEM_GET_CLASS (self)->equals (self, other); + return _G_PASTE_ITEM_GET_CLASS (self)->equals (self, other) && _G_PASTE_ITEM_GET_CLASS (other)->equals (other, self); } /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gpaste-3.24.1/src/libgpaste/daemon/gpaste-daemon.c new/gpaste-3.24.2/src/libgpaste/daemon/gpaste-daemon.c --- old/gpaste-3.24.1/src/libgpaste/daemon/gpaste-daemon.c 2017-03-17 17:48:50.000000000 +0100 +++ new/gpaste-3.24.2/src/libgpaste/daemon/gpaste-daemon.c 2017-04-11 17:14:21.000000000 +0200 @@ -739,6 +739,7 @@ g_autofree gchar *name = g_variant_dup_string (variant2, &length); G_PASTE_DBUS_ASSERT (name, "no password name given"); + G_PASTE_DBUS_ASSERT (!g_paste_history_get_password (priv->history, name), "a password with tat name already exists"); g_paste_history_set_password (priv->history, index, name); }
