Skip to content

fix --inject-checksums when extension specifies patch file in tuple format#4405

Merged
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:fix_inject-checksum-for-ext-tuples
Dec 20, 2023
Merged

fix --inject-checksums when extension specifies patch file in tuple format#4405
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:fix_inject-checksum-for-ext-tuples

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

make_list_lines had a "'%s'" % x part where x is the patch entry.

However that could be a tuple (or even dict) to designate extra options such as the subdir or level where the patch should be applied. This then failed with "TypeError: not all arguments converted during string formatting"

Fix by checking the type first and add a test for this case.

`make_list_lines` had a `"'%s'" % x` part where `x` is the patch entry.
However that could be a tuple (or even dict) to designate extra options
such as the subdir or level where the patch should be applied.
This then failed with "TypeError: not all arguments converted during string formatting"
Fix by checking the type first and add a test for this case.
@boegel boegel added the bug fix label Dec 20, 2023
@boegel boegel added this to the next release (4.9.0?) milestone Dec 20, 2023
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel changed the title Fix --inject-checksums when extension has tuple-format patch fix --inject-checksums when extension specifies patch file in tuple format Dec 20, 2023
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel merged commit 87b9659 into easybuilders:develop Dec 20, 2023
@Flamefire Flamefire deleted the fix_inject-checksum-for-ext-tuples branch December 21, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants