Bug 274122 - sysutils/initool: Update to 0.13.0
Summary: sysutils/initool: Update to 0.13.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: Li-Wen Hsu
URL: https://github.com/dbohdan/initool/re...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-27 11:17 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2023-09-28 05:26 UTC (History)
1 user (show)

See Also:


Attachments
initool-0.13.0.patch (2.38 KB, patch)
2023-09-27 11:17 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-09-27 11:17:37 UTC
Created attachment 245277 [details]
initool-0.13.0.patch

Description:


ChangeLog: https://github.com/dbohdan/initool/releases/tag/v0.13.0

* Added a new global option -i/--ignore-case.
* Implemented wildcards. A wildcard (*) section name or key matches
  everything.
* Repeated keys and section names are handled correctly. Commands
  act on every copy. exist and get ... --value-only did not work
  correctly for repeated items before.
* get, set, delete can exit with non-zero status. The previous
  approach of never doing it made it easier for mistakes to go
  unnoticed. Sorry if this breaks your script. It was a mistake
  to keep the old behavior for so long.
* Initool no longer prints the section name on
  get existing-section missing-property. It is not clear it helped
  users in any way. It might have been confusing, creating an
  impression that the section was empty when it may or may not have
  been. (This change only affects getting a nonexistent property.
  Initool gets an empty section like it did before. Deleting
  everything from a section does not delete the section itself,
  since an empty section's presence may have meaning.)
* Initool no longer prints a blank line when there is nothing to
  output from get or delete.

QA:


* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.2-RELEASE, amd64, DOCS tested)
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-09-28 05:26:08 UTC
A commit in branch main references this bug:

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

commit 7883fa8a716a7d74ef9548b04eab340f42e69df9
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-09-27 11:13:04 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2023-09-28 05:24:36 +0000

    sysutils/initool: Update to 0.13.0

    ChangeLog: https://github.com/dbohdan/initool/releases/tag/v0.13.0

    * Added a new global option -i/--ignore-case.
    * Implemented wildcards. A wildcard (*) section name or key matches
      everything.
    * Repeated keys and section names are handled correctly. Commands
      act on every copy. exist and get ... --value-only did not work
      correctly for repeated items before.
    * get, set, delete can exit with non-zero status. The previous
      approach of never doing it made it easier for mistakes to go
      unnoticed. Sorry if this breaks your script. It was a mistake
      to keep the old behavior for so long.
    * Initool no longer prints the section name on
      get existing-section missing-property. It is not clear it helped
      users in any way. It might have been confusing, creating an
      impression that the section was empty when it may or may not have
      been. (This change only affects getting a nonexistent property.
      Initool gets an empty section like it did before. Deleting
      everything from a section does not delete the section itself,
      since an empty section's presence may have meaning.)
    * Initool no longer prints a blank line when there is nothing to
      output from get or delete.

    PR:             274122

 sysutils/initool/Makefile | 2 +-
 sysutils/initool/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)