Skip to content

package: improvements#44

Open
shwstppr wants to merge 5 commits into
cloudstack:mainfrom
shwstppr:pkg-createrepo
Open

package: improvements#44
shwstppr wants to merge 5 commits into
cloudstack:mainfrom
shwstppr:pkg-createrepo

Conversation

@shwstppr
Copy link
Copy Markdown
Contributor

@shwstppr shwstppr commented Aug 24, 2025

  • Creates repo file for RPM packages
  • GitHub token can be added for private repositories

Creates repo file for RPM packages
Copy link
Copy Markdown

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.

Comment thread files/build.sh
Comment thread files/build.sh
Comment thread files/build.sh
Comment thread files/build.sh
Comment thread files/build.sh Outdated
shwstppr and others added 2 commits December 29, 2025 11:10
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

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 thread files/build.sh
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.
shwstppr added 2 commits May 15, 2026 16:01
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr shwstppr changed the title rpm: create repo package: improvements May 15, 2026
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