Skip to content

portchecksum: preserve formatting in checksum suggestions#398

Open
herbygillot wants to merge 1 commit into
macports:masterfrom
herbygillot:formatted-checksum
Open

portchecksum: preserve formatting in checksum suggestions#398
herbygillot wants to merge 1 commit into
macports:masterfrom
herbygillot:formatted-checksum

Conversation

@herbygillot

Copy link
Copy Markdown
Member

When checksum verification fails, the suggested checksums line now matches the existing Portfile's indentation, keyword width, and distfile naming style (including variable expressions like ${go_src_dist}) instead of using hardcoded formatting.

Handles multiple checksum blocks (checksums, checksums-append, checksums-prepend) with per-block formatting and line number hints.

Fixes: https://trac.macports.org/ticket/73690

When checksum verification fails, the suggested checksums line now
matches the existing Portfile's indentation, keyword width, and
distfile naming style (including variable expressions like
${go_src_dist}) instead of using hardcoded formatting.

Handles multiple checksum blocks (checksums, checksums-append,
checksums-prepend) with per-block formatting and line number hints.

Fixes: https://trac.macports.org/ticket/73690

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fhgwright

Copy link
Copy Markdown

OK. I'd have expected this to share code with #378, but I guess not.

@herbygillot

Copy link
Copy Markdown
Member Author

OK. I'd have expected this to share code with #378, but I guess not.

Very little code shared between the two, so I just opted to make it its own PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants