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

Take validity into account when accessing tags and macro definitions by name #328

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

nforro
Copy link
Member

@nforro nforro commented Nov 29, 2023

Fixes #327.

RELEASE NOTES BEGIN

When accessing tags or macro definitions by name, specfile now takes validity into account when looking for the best match. For example if there are two instances of Version tag, one in the true and one in the false branch of a condition, Specfile.version will always access the one that is in the true branch.

RELEASE NOTES END

Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/0c19677360414030943e37de4536c59a

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

@nforro nforro added the mergeit Zuul, merge it! label Dec 1, 2023
Copy link
Contributor

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

✔️ pre-commit SUCCESS in 1m 50s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 152f67c into main Dec 1, 2023
20 of 31 checks passed
@delete-merged-branch delete-merged-branch bot deleted the validity branch December 1, 2023 10:03
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.

In case of multiple Version tags, Specfile.update_version() always updates the first one
2 participants