Skip to content

Add support for "Epoch" attributes in RPMs#858

Merged
aiuto merged 1 commit intobazelbuild:mainfrom
TvdW:fix-epoch
Apr 24, 2024
Merged

Add support for "Epoch" attributes in RPMs#858
aiuto merged 1 commit intobazelbuild:mainfrom
TvdW:fix-epoch

Conversation

@TvdW
Copy link
Copy Markdown
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
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.

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

tests/rpm/BUILD Outdated
architecture = "noarch",
conflicts = ["not-a-test"],
description = """pkg_rpm test rpm description""",
epoch = "1",
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agree! Updated 😄


def test_basic_headers(self):
common_fields = {
"EPOCH": b"1",
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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