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 update_value() #340

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Fix update_value() #340

merged 1 commit into from
Jan 8, 2024

Conversation

nforro
Copy link
Member

@nforro nforro commented Jan 8, 2024

The implementation didn't account for a case when a macro definition needed to be commented out to succesfully set the new value but it was commented out already. This commit fixes that.

The implementation didn't account for a case when a macro definition
needed to be commented out to succesfully set the new value but it
was commented out already. This commit fixes that.

Signed-off-by: Nikola Forró <[email protected]>
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/21257285c1dd4b2ca4fe9cb6403168ec

✔️ pre-commit SUCCESS in 1m 49s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 07s
✔️ specfile-tests-pip-deps SUCCESS in 1m 06s

Comment on lines +793 to +794
m = regex.match(requested_value)
if not m:
Copy link
Member

Choose a reason for hiding this comment

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

I am wondering if walrus can help here..;)

Copy link
Member Author

Choose a reason for hiding this comment

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

We can't use that, specfile still has to support Python 3.6.

@nforro nforro added the mergeit Zuul, merge it! label Jan 8, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/26511e46a8cd459db10d45c0d2aebc9f

✔️ pre-commit SUCCESS in 1m 44s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit b9ba2f8 into main Jan 8, 2024
27 checks passed
@delete-merged-branch delete-merged-branch bot deleted the update_value branch January 8, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Zuul, merge it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants