Skip to content

rpm: create repo#44

Open
shwstppr wants to merge 3 commits intoshapeblue:mainfrom
shwstppr:pkg-createrepo
Open

rpm: create repo#44
shwstppr wants to merge 3 commits intoshapeblue:mainfrom
shwstppr:pkg-createrepo

Conversation

@shwstppr
Copy link
Member

Creates repo file for RPM packages

Creates repo file for RPM packages
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds functionality to create RPM repository metadata for built packages using createrepo. The changes modify the CentOS/RPM build path to fix outdated CentOS repository URLs (switching from mirror.centos.org to vault.centos.org) and then generate repository metadata in the /output directory where built RPM packages are stored.

Key Changes:

  • Adds CentOS repository URL fixes to enable package installation on systems where mirror.centos.org is no longer accessible
  • Installs and runs createrepo to generate RPM repository metadata for packages in /output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

shwstppr and others added 2 commits December 29, 2025 11:10
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +223 to +224
dnf install createrepo -y || true
createrepo /output
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

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

If the dnf install createrepo command fails (suppressed by || true), the subsequent createrepo command on line 224 will fail with an unclear error message about the command not being found. Consider checking whether createrepo was successfully installed before attempting to use it, or remove the || true to ensure the build fails fast with a clear error if the package cannot be installed.

Copilot uses AI. Check for mistakes.
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.

2 participants