Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package secrets for openSUSE:Factory checked in at 2022-08-17 18:17:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/secrets (Old) and /work/SRC/openSUSE:Factory/.secrets.new.1521 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "secrets" Wed Aug 17 18:17:07 2022 rev:3 rq:997569 version:6.5 Changes: -------- --- /work/SRC/openSUSE:Factory/secrets/secrets.changes 2022-02-28 19:44:07.421953769 +0100 +++ /work/SRC/openSUSE:Factory/.secrets.new.1521/secrets.changes 2022-08-17 18:29:42.184109627 +0200 @@ -1,0 +2,20 @@ +Wed Aug 17 08:38:42 UTC 2022 - Christophe Giboudeaux <christo...@krop.fr> + +- Add upstream change to fix build with recent pykeepass versions: + * 0001-Update-pykeepass-to-4.0.3.patch + +------------------------------------------------------------------- +Wed Jun 29 09:23:22 UTC 2022 - Bj??rn Lie <bjorn....@gmail.com> + +- Update to version 6.5: + + Fix a crash that happens when the native file chooser returns + NULL as a file. +- Changes from version 6.4: + + Fix a crash when creating a new database under certain + circumstances. +- Changes from version 6.3: + + Minor bugfix release. + + Save operations are now atomic. + + Updated translations. + +------------------------------------------------------------------- Old: ---- secrets-6.2.obscpio New: ---- 0001-Update-pykeepass-to-4.0.3.patch secrets-6.5.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ secrets.spec ++++++ --- /var/tmp/diff_new_pack.LNHr8j/_old 2022-08-17 18:29:42.720110949 +0200 +++ /var/tmp/diff_new_pack.LNHr8j/_new 2022-08-17 18:29:42.724110959 +0200 @@ -17,13 +17,14 @@ Name: secrets -Version: 6.2 +Version: 6.5 Release: 0 Summary: A password manager for GNOME License: GPL-3.0-or-later URL: https://gitlab.gnome.org/World/secrets Source0: %{name}-%{version}.tar.xz - +# PATCH-FIX-UPSTREAM +Patch0: 0001-Update-pykeepass-to-4.0.3.patch BuildRequires: appstream-glib BuildRequires: desktop-file-utils BuildRequires: meson >= 0.51.0 @@ -31,7 +32,7 @@ BuildRequires: python3-base >= 3.7.0 BuildRequires: python3-construct BuildRequires: python3-gobject-Gdk -BuildRequires: python3-pykeepass >= 4.0.1 +BuildRequires: python3-pykeepass >= 4.0.3 BuildRequires: python3-pyotp >= 2.4.0 BuildRequires: python3-pytest BuildRequires: pkgconfig(gio-2.0) ++++++ 0001-Update-pykeepass-to-4.0.3.patch ++++++ >From 7ae6e1574343f46a6ed42b4c4625a07aeffd226c Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R <msand...@protonmail.com> Date: Mon, 4 Jul 2022 19:34:39 +0200 Subject: [PATCH] Update pykeepass to 4.0.3 --- flatpak/python3-pykeepass.json | 4 ++-- gsecrets/safe_element.py | 8 ++++---- meson.build | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/flatpak/python3-pykeepass.json b/flatpak/python3-pykeepass.json index 3d8ffda..6531f77 100644 --- a/flatpak/python3-pykeepass.json +++ b/flatpak/python3-pykeepass.json @@ -7,8 +7,8 @@ "sources": [ { "type": "file", - "url": "https://files.pythonhosted.org/packages/f1/08/b4b8f7bce23190ed4f34f4d9cf4f75f8a255f4f4c378296daf4b7027d2cb/pykeepass-4.0.1.tar.gz", - "sha256": "eaa2a016c15a81beb6e253a8cb1fe64738b5fb4a28389dcdba621ea538dd814b" + "url": "https://files.pythonhosted.org/packages/76/02/e29e09741cfe63ce6dbb55394024b8df7f4ffb8d9ad4a53a935feb58b28f/pykeepass-4.0.3.tar.gz", + "sha256": "677095f700e7f1445dd31fa43863462979e7d360aee2529e72cc216003fd7ab5" } ], "modules": [ diff --git a/gsecrets/safe_element.py b/gsecrets/safe_element.py index 3ab22ac..b4c6f89 100644 --- a/gsecrets/safe_element.py +++ b/gsecrets/safe_element.py @@ -327,8 +327,7 @@ class SafeEntry(SafeElement): self._url: str = entry.url or "" self._username: str = entry.username or "" - otp_uri = entry.get_custom_property("otp") - if otp_uri: + if (otp_uri := entry.otp): try: self._otp = parse_uri(otp_uri) except ValueError as err: @@ -536,7 +535,8 @@ class SafeEntry(SafeElement): if not otp and self._otp: # Delete existing self._otp = None - self._element.delete_custom_property("otp") + # NOTE the opt property doesn't accept None. + self._element.otp = "" self.updated() elif self._otp and self._otp.secret != otp: # Changing an existing OTP @@ -548,7 +548,7 @@ class SafeEntry(SafeElement): updated = True if updated: - self._element.set_custom_property("otp", self._otp.provisioning_uri()) + self._element.otp = self._otp.provisioning_uri() self.updated() def otp_interval(self) -> int: diff --git a/meson.build b/meson.build index 77073a1..6249a1a 100644 --- a/meson.build +++ b/meson.build @@ -26,7 +26,7 @@ artists = '\n'.join([ ]) message('Looking for dependencies') -# We need pykeepass>=4.0.1 and pyotp>=2.4.0. +# We need pykeepass>=4.0.3 and pyotp>=2.4.0. python_bin = python.find_installation('python3', modules:['pykeepass', 'pyotp']) if not python_bin.found() error('No valid python3 binary found') -- 2.37.1 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.LNHr8j/_old 2022-08-17 18:29:42.772111078 +0200 +++ /var/tmp/diff_new_pack.LNHr8j/_new 2022-08-17 18:29:42.772111078 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="disabled" > <param name="scm">git</param> <param name="url">https://gitlab.gnome.org/World/secrets.git</param> - <param name="revision">refs/tags/6.2</param> + <param name="revision">refs/tags/6.5</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ secrets-6.2.obscpio -> secrets-6.5.obscpio ++++++ ++++ 29122 lines of diff (skipped) ++++++ secrets.obsinfo ++++++ --- /var/tmp/diff_new_pack.LNHr8j/_old 2022-08-17 18:29:43.004111650 +0200 +++ /var/tmp/diff_new_pack.LNHr8j/_new 2022-08-17 18:29:43.008111660 +0200 @@ -1,5 +1,5 @@ name: secrets -version: 6.2 -mtime: 1644868392 -commit: c8bbdde0b798b73f672fd279bdde733d68515a38 +version: 6.5 +mtime: 1651896720 +commit: 2103661272e0f9b6b63db7103b08c818478debde