Bug 271746

Summary: archivers/py-zipstream-ng: Update to 1.6.0
Product: Ports & Packages Reporter: Jesús Daniel Colmenares Oviedo <DtxdF>
Component: Individual Port(s)Assignee: Robert Clausecker <fuz>
Status: Closed FIXED    
Severity: Affects Only Me CC: fuz
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/pR0Ps/zipstream-ng/blob/master/CHANGELOG.md#v160
Attachments:
Description Flags
py-zipstream-ng-1.6.0.patch DtxdF: maintainer-approval+

Description Jesús Daniel Colmenares Oviedo 2023-05-31 15:04:45 UTC
Created attachment 242519 [details]
py-zipstream-ng-1.6.0.patch

Description:

ChangeLog:
https://github.com/pR0Ps/zipstream-ng/blob/master/CHANGELOG.md#v160

* Add the ability to provide a custom "walk" function to
  ZipStream.add_path for more control over how directories are walked.
* Change the exception raised when trying to add a file that doesn't exist
  from a ValueError to a more appropriate FileNotFoundError.
* Optimize the number of os.stat calls required to add a file.
* Fix issue where adding data with an arcname that contained a null byte
  would lead to an incorrect size being calculated.
* When ZipStream.add is provided a size alongside an iterable, the size
  will now be used to determine if Zip64 extensions are needed.

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.2-RELEASE, amd64)
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-06-01 22:30:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bb7c45a5b5220813909a1178f3d609e15efb290b

commit bb7c45a5b5220813909a1178f3d609e15efb290b
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-05-31 15:01:31 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-06-01 22:29:22 +0000

    archivers/py-zipstream-ng: Update to 1.6.0

    ChangeLog:
    https://github.com/pR0Ps/zipstream-ng/blob/master/CHANGELOG.md#v160

    * Add the ability to provide a custom "walk" function to
      ZipStream.add_path for more control over how directories are walked.
    * Change the exception raised when trying to add a file that doesn't exist
      from a ValueError to a more appropriate FileNotFoundError.
    * Optimize the number of os.stat calls required to add a file.
    * Fix issue where adding data with an arcname that contained a null byte
      would lead to an incorrect size being calculated.
    * When ZipStream.add is provided a size alongside an iterable, the size
      will now be used to determine if Zip64 extensions are needed.

    PR:             271746

 archivers/py-zipstream-ng/Makefile | 2 +-
 archivers/py-zipstream-ng/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 2 Robert Clausecker freebsd_committer freebsd_triage 2023-06-01 22:33:16 UTC
Thank you for your submission.