Skip to content

rpm: fix sub-RPM post_scriptlet and add %postun support#934

Merged
aiuto merged 1 commit intobazelbuild:mainfrom
wade-arista:main
Feb 21, 2025
Merged

rpm: fix sub-RPM post_scriptlet and add %postun support#934
aiuto merged 1 commit intobazelbuild:mainfrom
wade-arista:main

Conversation

@wade-arista
Copy link
Copy Markdown
Contributor

The existing implementation of %post neglected to actually include the contents of the %post scriptlet and simply added a %post section to the spec file without the body, e.g.

%post sub

%files sub
...

With this change, I've also added support for %postun and included the scriptlet support in the test_golden_sub_rpm_contents test case.

The existing implementation of `%post` neglected to actually include
the contents of the `%post` scriptlet and simply added a `%post`
section to the spec file without the body, e.g.

    %post sub

    %files sub
    ...

With this change, I've also added support for `%postun` and included
the scriptlet support in the `test_golden_sub_rpm_contents` test case.
Copy link
Copy Markdown
Collaborator

@cgrindel cgrindel left a comment

Choose a reason for hiding this comment

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

LGTM.

@cgrindel
Copy link
Copy Markdown
Collaborator

@aiuto It appears the CI failures are unrelated to the PR. How do you usually handle this?

@aiuto aiuto merged commit f68b1de into bazelbuild:main Feb 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants