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

Add support for "Epoch" attributes in RPMs #858

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Add support for "Epoch" attributes in RPMs #858

merged 1 commit into from
Apr 24, 2024

Conversation

TvdW
Copy link
Contributor

@TvdW TvdW commented Apr 17, 2024

Fixes #857

@TvdW TvdW requested review from aiuto and cgrindel as code owners April 17, 2024 15:53
Copy link
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.

I will wait to merge so that @aiuto can take a look.

tests/rpm/BUILD Outdated
@@ -179,6 +179,7 @@ pkg_rpm(
architecture = "noarch",
conflicts = ["not-a-test"],
description = """pkg_rpm test rpm description""",
epoch = "1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since this is optional, it should not be in every test case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree! Updated 😄

@@ -74,6 +74,7 @@ def test_scriptlet_content(self):

def test_basic_headers(self):
common_fields = {
"EPOCH": b"1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you pass in the check for EPOCH to only the samples which add it?
I know that is not the same pattern here, but what is here was hacked up in a hurry. Having version and release the same for everything is not so bad, but we should have split out noarch and group so they can vary by test case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@aiuto aiuto left a comment

Choose a reason for hiding this comment

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

Thanks for the change

@aiuto aiuto merged commit 21e1ccc into bazelbuild:main Apr 24, 2024
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.

pkg_rpm does not support the rpm 'Epoch' field
3 participants