Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyscard for openSUSE:Factory checked in at 2021-09-23 23:04:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyscard (Old) and /work/SRC/openSUSE:Factory/.python-pyscard.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyscard" Thu Sep 23 23:04:24 2021 rev:11 rq:921177 version:2.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyscard/python-pyscard.changes 2021-08-24 10:55:50.404244084 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyscard.new.1899/python-pyscard.changes 2021-09-23 23:04:33.120345316 +0200 @@ -1,0 +2,8 @@ +Wed Sep 22 20:54:40 UTC 2021 - Martin Hauke <mar...@gmx.de> + +- Update to version 2.0.2 + * Restrict MAX_BUFFER_SIZE_EXTENDED to 65535 and fix an issue + on Lenovo laptops with NXP NFC readers + * SmartcardException: display a positive PCSC error code + +------------------------------------------------------------------- Old: ---- pyscard-2.0.1.tar.gz New: ---- pyscard-2.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyscard.spec ++++++ --- /var/tmp/diff_new_pack.OtfFxS/_old 2021-09-23 23:04:33.644345707 +0200 +++ /var/tmp/diff_new_pack.OtfFxS/_new 2021-09-23 23:04:33.648345709 +0200 @@ -21,7 +21,7 @@ %bcond_without test %define modname pyscard Name: python-pyscard -Version: 2.0.1 +Version: 2.0.2 Release: 0 Summary: Python module adding smart card support License: LGPL-2.0-or-later ++++++ pyscard-2.0.1.tar.gz -> pyscard-2.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/ChangeLog new/pyscard-2.0.2/ChangeLog --- old/pyscard-2.0.1/ChangeLog 2021-06-17 16:51:10.000000000 +0200 +++ new/pyscard-2.0.2/ChangeLog 2021-09-22 22:37:46.000000000 +0200 @@ -1,3 +1,14 @@ +2.0.2 (September 2021) +====================== + + * Fix an issue in ReaderMonitor() that failed to enumerate readers + on macOS + * getReaderNames(): handle SCARD_E_SERVICE_STOPPED on Windows + generated on last reader removal + * Restrict MAX_BUFFER_SIZE_EXTENDED to 65535 and fix an issue on + Lenovo laptops with NXP NFC readers + * SmartcardException: display a positive PCSC error code + 2.0.1 (June 2021) ================= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/PKG-INFO new/pyscard-2.0.2/PKG-INFO --- old/pyscard-2.0.1/PKG-INFO 2021-06-17 16:52:18.880407000 +0200 +++ new/pyscard-2.0.2/PKG-INFO 2021-09-22 22:40:37.127004600 +0200 @@ -1,12 +1,12 @@ Metadata-Version: 2.1 Name: pyscard -Version: 2.0.1 +Version: 2.0.2 Summary: Smartcard module for Python. Home-page: https://github.com/LudovicRousseau/pyscard Author: Ludovic Rousseau Author-email: ludovic.rouss...@free.fr License: UNKNOWN -Download-URL: http://sourceforge.net/projects/pyscard/files/pyscard/pyscard%202.0.1/pyscard-2.0.1.tar.gz/download +Download-URL: http://sourceforge.net/projects/pyscard/files/pyscard/pyscard%202.0.2/pyscard-2.0.2.tar.gz/download Description: Smartcard package for Python Platform: linux Platform: win32 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/pyscard.egg-info/PKG-INFO new/pyscard-2.0.2/pyscard.egg-info/PKG-INFO --- old/pyscard-2.0.1/pyscard.egg-info/PKG-INFO 2021-06-17 16:52:18.000000000 +0200 +++ new/pyscard-2.0.2/pyscard.egg-info/PKG-INFO 2021-09-22 22:40:37.000000000 +0200 @@ -1,12 +1,12 @@ Metadata-Version: 2.1 Name: pyscard -Version: 2.0.1 +Version: 2.0.2 Summary: Smartcard module for Python. Home-page: https://github.com/LudovicRousseau/pyscard Author: Ludovic Rousseau Author-email: ludovic.rouss...@free.fr License: UNKNOWN -Download-URL: http://sourceforge.net/projects/pyscard/files/pyscard/pyscard%202.0.1/pyscard-2.0.1.tar.gz/download +Download-URL: http://sourceforge.net/projects/pyscard/files/pyscard/pyscard%202.0.2/pyscard-2.0.2.tar.gz/download Description: Smartcard package for Python Platform: linux Platform: win32 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/setup.py new/pyscard-2.0.2/setup.py --- old/pyscard-2.0.1/setup.py 2021-06-17 16:51:10.000000000 +0200 +++ new/pyscard-2.0.2/setup.py 2021-09-22 22:37:46.000000000 +0200 @@ -70,7 +70,7 @@ platform_include_dirs = ['/usr/include/PCSC', '/usr/local/include/PCSC'] -VERSION_INFO = (2, 0, 1, 0) +VERSION_INFO = (2, 0, 2, 0) VERSION_STR = '%i.%i.%i' % VERSION_INFO[:3] VERSION_ALT = '%i,%01i,%01i,%04i' % VERSION_INFO diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py new/pyscard-2.0.2/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py --- old/pyscard-2.0.1/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py 2021-06-11 10:06:34.000000000 +0200 +++ new/pyscard-2.0.2/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py 2021-06-17 17:35:57.000000000 +0200 @@ -1,3 +1,4 @@ +#! /usr/bin/env python3 # -*- coding: iso-8859-15 -*- """ Simple panel that defines a dialog to send APDUs to a card. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/smartcard/Exceptions.py new/pyscard-2.0.2/smartcard/Exceptions.py --- old/pyscard-2.0.1/smartcard/Exceptions.py 2019-10-22 18:44:24.000000000 +0200 +++ new/pyscard-2.0.2/smartcard/Exceptions.py 2021-09-22 22:37:46.000000000 +0200 @@ -41,7 +41,11 @@ def __str__(self): text = super(SmartcardException, self).__str__() if self.hresult != -1: - text += ": %s (0x%08X)" % (SCardGetErrorMessage(self.hresult), self.hresult) + hresult = self.hresult + if hresult < 0: + # convert 0x-7FEFFFE3 into 0x8010001D + hresult += 0x100000000 + text += ": %s (0x%08X)" % (SCardGetErrorMessage(self.hresult), hresult) return text diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/smartcard/pcsc/PCSCCardRequest.py new/pyscard-2.0.2/smartcard/pcsc/PCSCCardRequest.py --- old/pyscard-2.0.1/smartcard/pcsc/PCSCCardRequest.py 2021-06-11 11:33:20.000000000 +0200 +++ new/pyscard-2.0.2/smartcard/pcsc/PCSCCardRequest.py 2021-09-22 22:37:46.000000000 +0200 @@ -89,7 +89,9 @@ # get inserted readers hresult, pcscreaders = SCardListReaders(self.hcontext, []) - if 0 != hresult and SCARD_E_NO_READERS_AVAILABLE != hresult: + if hresult in [SCARD_E_NO_READERS_AVAILABLE, SCARD_E_SERVICE_STOPPED]: + return [] + if SCARD_S_SUCCESS != hresult: raise ListReadersException(hresult) readers = [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/smartcard/pcsc/PCSCContext.py new/pyscard-2.0.2/smartcard/pcsc/PCSCContext.py --- old/pyscard-2.0.1/smartcard/pcsc/PCSCContext.py 2021-06-11 11:53:13.000000000 +0200 +++ new/pyscard-2.0.2/smartcard/pcsc/PCSCContext.py 2021-09-22 22:37:46.000000000 +0200 @@ -52,7 +52,8 @@ def __init__(self): PCSCContext.mutex.acquire() try: - self.renewContext() + if not PCSCContext.instance: + self.renewContext() finally: PCSCContext.mutex.release() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/smartcard/scard/scard.i new/pyscard-2.0.2/smartcard/scard/scard.i --- old/pyscard-2.0.1/smartcard/scard/scard.i 2020-09-16 14:24:16.000000000 +0200 +++ new/pyscard-2.0.2/smartcard/scard/scard.i 2021-09-22 22:37:46.000000000 +0200 @@ -152,9 +152,9 @@ #else // !PCSCLITE // SCARD_CTL_CODE defined in WinSmCrd.h included by Win32 winscard.h // MAX_BUFFER_SIZE_EXTENDED is pcsc-lite specific -// Windows 7 does not support more than 65544 bytes for SCardControl() -// See https://github.com/LudovicRousseau/pyscard/issues/19 -#define MAX_BUFFER_SIZE_EXTENDED 65544 +// Issues on Lenovo laptop with NXP reader for higher values +// See https://github.com/LudovicRousseau/pyscard/issues/100 +#define MAX_BUFFER_SIZE_EXTENDED 65535 #endif //PCSCLITE #include "pcsctypes.h" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyscard-2.0.1/test/test_Exceptions.py new/pyscard-2.0.2/test/test_Exceptions.py --- old/pyscard-2.0.1/test/test_Exceptions.py 2021-06-11 10:09:36.000000000 +0200 +++ new/pyscard-2.0.2/test/test_Exceptions.py 2021-09-22 22:37:46.000000000 +0200 @@ -27,7 +27,7 @@ exc = ListReadersException(0x42) self.assertEqual(exc.hresult, 0x42) text = str(exc) - if get_platform().startswith('linux'): + if not get_platform().startswith('win'): self.assertEqual(text, "Failed to list readers: Unknown error: 0x00000042 (0x00000042)") exc = ListReadersException(SCARD_S_SUCCESS) @@ -36,8 +36,8 @@ exc = ListReadersException(SCARD_E_NO_SERVICE) self.assertEqual(exc.hresult, SCARD_E_NO_SERVICE) text = str(exc) - if get_platform().startswith('linux'): - self.assertEqual(text, "Failed to list readers: Service not available. (0x%08X)" % SCARD_E_NO_SERVICE) + if not get_platform().startswith('win'): + self.assertEqual(text, "Failed to list readers: Service not available. (0x8010001D)") def test_NoReadersException(self): exc = NoReadersException()