Skip to content

Adapt to Changes/droppingOfCertPemFile#1711

Merged
xsuchy merged 1 commit intorpm-software-management:mainfrom
praiskup:praiskup-ca-bundle-location
Feb 14, 2026
Merged

Adapt to Changes/droppingOfCertPemFile#1711
xsuchy merged 1 commit intorpm-software-management:mainfrom
praiskup:praiskup-ca-bundle-location

Conversation

@praiskup
Copy link
Member

The change suggests us to use different bundle location:

| needs to preferably use the defaults of the library or if they must, | use the /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem file | instead.

Fixes: #1667

The change suggests us to use different bundle location:

| needs to preferably use the defaults of the library or if they must,
| use the /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem file
| instead.

Fixes: rpm-software-management#1667
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly updates the path to the CA bundle to reflect recent changes in Fedora and adds a corresponding release note. My review includes one suggestion to define the new path as a constant to improve code maintainability, in line with the repository's style guide.

if bundle_path:
self.buildroot.root_log.debug('copying CA bundle into chroot')
host_bundle = os.path.realpath('/etc/pki/tls/certs/ca-bundle.crt')
host_bundle = os.path.realpath('/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem')

Choose a reason for hiding this comment

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

medium

While the path update is correct, using a magic string directly in the code can make future maintenance harder. To improve maintainability and adhere to the style guide, please define this path as a module-level constant.

For example, at the top of the file:

_CA_BUNDLE_PATH = '/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem'

Then use it here:

host_bundle = os.path.realpath(_CA_BUNDLE_PATH)
References
  1. Line 13 of the repository style guide specifies that constants should be in uppercase with underscores. Using a constant for this file path also improves maintainability, as encouraged by line 5. (link)

Copy link
Member

@xsuchy xsuchy left a comment

Choose a reason for hiding this comment

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

+1

@xsuchy xsuchy merged commit fb6693c into rpm-software-management:main Feb 14, 2026
32 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.

Adapt Fedora Change: Dropping of cert.pem file

2 participants