Bug 271746 - archivers/py-zipstream-ng: Update to 1.6.0
Summary: archivers/py-zipstream-ng: Update to 1.6.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Robert Clausecker
URL: https://github.com/pR0Ps/zipstream-ng...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-31 15:04 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2023-06-01 22:33 UTC (History)
1 user (show)

See Also:


Attachments
py-zipstream-ng-1.6.0.patch (1.96 KB, patch)
2023-05-31 15:04 UTC, Jesús Daniel Colmenares Oviedo
DtxdF: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.