Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pynitrokey for 
openSUSE:Factory checked in at 2025-06-02 22:01:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pynitrokey (Old)
 and      /work/SRC/openSUSE:Factory/.python-pynitrokey.new.16005 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pynitrokey"

Mon Jun  2 22:01:00 2025 rev:18 rq:1281871 version:0.8.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pynitrokey/python-pynitrokey.changes      
2025-05-22 16:56:23.116684867 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pynitrokey.new.16005/python-pynitrokey.changes
   2025-06-02 22:01:17.195027759 +0200
@@ -1,0 +2,10 @@
+Mon Jun  2 10:24:38 UTC 2025 - Johannes Kastl 
<opensuse_buildserv...@ojkastl.de>
+
+- update to 0.8.5:
+  This release fixes a bug in nk3 secrets when handling base32 
+  secrets if the length is a multiple of 8.
+  * Changelog
+    - helpers.b32padding: avoid adding 8 pads when none needed by
+      @AmitAronovitch in #654
+
+-------------------------------------------------------------------

Old:
----
  pynitrokey-0.8.4.tar.gz

New:
----
  pynitrokey-0.8.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pynitrokey.spec ++++++
--- /var/tmp/diff_new_pack.ruvH9v/_old  2025-06-02 22:01:17.619045344 +0200
+++ /var/tmp/diff_new_pack.ruvH9v/_new  2025-06-02 22:01:17.623045510 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-pynitrokey
-Version:        0.8.4
+Version:        0.8.5
 Release:        0
 Summary:        Python Library for Nitrokey devices
 License:        Apache-2.0 OR MIT

++++++ pynitrokey-0.8.4.tar.gz -> pynitrokey-0.8.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynitrokey-0.8.4/PKG-INFO 
new/pynitrokey-0.8.5/PKG-INFO
--- old/pynitrokey-0.8.4/PKG-INFO       1970-01-01 01:00:00.000000000 +0100
+++ new/pynitrokey-0.8.5/PKG-INFO       1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: pynitrokey
-Version: 0.8.4
+Version: 0.8.5
 Summary: Python Library for Nitrokey devices.
 Author-email: Nitrokey <p...@nitrokey.com>
 Requires-Python: >=3.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynitrokey-0.8.4/pynitrokey/VERSION 
new/pynitrokey-0.8.5/pynitrokey/VERSION
--- old/pynitrokey-0.8.4/pynitrokey/VERSION     2025-05-20 15:32:33.000000000 
+0200
+++ new/pynitrokey-0.8.5/pynitrokey/VERSION     2025-06-01 18:56:52.000000000 
+0200
@@ -1 +1 @@
-0.8.4
+0.8.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynitrokey-0.8.4/pynitrokey/helpers.py 
new/pynitrokey-0.8.5/pynitrokey/helpers.py
--- old/pynitrokey-0.8.4/pynitrokey/helpers.py  2025-05-20 15:32:33.000000000 
+0200
+++ new/pynitrokey-0.8.5/pynitrokey/helpers.py  2025-06-01 18:56:52.000000000 
+0200
@@ -93,8 +93,23 @@
 
     Returns:
         `str`: string padded to full base32 character blocks
+
+    >>> b32padding("")
+    ''
+    >>> b32padding("AA")
+    'AA======'
+    >>> b32padding("AAAA")
+    'AAAA===='
+    >>> b32padding("AAAAA")
+    'AAAAA==='
+    >>> b32padding("AAAAAAA")
+    'AAAAAAA='
+    >>> b32padding("AAAAAAAA")
+    'AAAAAAAA'
+    >>> b32padding("AAAAAAAABB")
+    'AAAAAAAABB======'
     """
-    padding_needed = 8 - (len(data) % 8)
+    padding_needed = -len(data) % 8
     return data + (padding_needed * "=")
 
 

Reply via email to