Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

Flamefire
Copy link
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
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
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
40 checks passed
@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.

None yet

2 participants