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

Avoid updating entity value if the entity is referenced from the new value #388

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

nforro
Copy link
Member

@nforro nforro commented Jun 25, 2024

Consider the folowing excerpt from a spec file:

%global rel 1%{?dist}

Release: %{rel}

Previously, calling Specfile.update_tag("Release", "%rel") resulted in the macro definition being updated to %global rel %rel, making the spec file invalid. After this change, the macro definition stays unchanged and the tag is updated to Release: %rel.

…value

Consider the folowing excerpt from a spec file:

```
%global rel 1%{?dist}

Release: %{rel}
```

Previously, calling `Specfile.update_tag("Release", "%rel")` resulted
in the macro definition being updated to `%global rel %rel`, making
the spec file invalid. After this change, the macro definition stays
unchanged and the tag is updated to `Release: %rel`.

Signed-off-by: Nikola Forró <nforro@redhat.com>
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/8d339cf93cc24ab98fddbd85beadf042

✔️ pre-commit SUCCESS in 2m 16s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 25s
✔️ specfile-tests-pip-deps SUCCESS in 1m 15s

@nforro
Copy link
Member Author

nforro commented Jun 25, 2024

/packit retest-failed

Copy link
Member

@lbarcziova lbarcziova left a comment

Choose a reason for hiding this comment

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

lgtm

@nforro nforro added the mergeit Zuul, merge it! label Jun 26, 2024
Copy link
Contributor

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

✔️ pre-commit SUCCESS in 2m 22s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 385818b into main Jun 26, 2024
28 checks passed
@mfocko mfocko deleted the update_value branch June 26, 2024 10:33
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.

2 participants