Skip to content

Commit

Permalink
rpm: keep compatibility with createrepo (#794)
Browse files Browse the repository at this point in the history
Latest createrepo-c breaks compatibility with createrepo. For example,
it does not create metadata (repodata/*) which can be handled yum in
AmazonLinux 2.

To keep compatibility for such a distribution, need to specify
--compatibility explicitly.

See rpm-software-management/createrepo_c#383

Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys authored Feb 12, 2025
1 parent 84f45be commit 70b36f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluent-package/manage-fluent-repositories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ EOF
# update & sign rpm repository
repodirs=`find "${FLUENT_RELEASE_DIR}" -regex "^${FLUENT_RELEASE_DIR}/5/\(redhat\|amazon\)/\([2789]\|2023\)/\(x86_64\|aarch64\)$"`
for repodir in $repodirs; do
createrepo_c -v "${repodir}"
createrepo_c -v --compatibility "${repodir}"

repofile="${repodir}/repodata/repomd.xml"
if [ -f "${repofile}.asc" ]; then
Expand Down

0 comments on commit 70b36f9

Please sign in to comment.