laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/32789 ) Change subject: data/build_rpm: force refresh of package indexes ...................................................................... data/build_rpm: force refresh of package indexes The yum-builddep command already has a mechanism to update the package index data if the last update (when the docker image was built) was some time ago. However when the packages we use happened to be updated in that timeframe, the indexes are not updated and attempting to download them leads to 404 errors. Force refresh all package indexes to avoid this. Fixes: OS#6038 Change-Id: I6e2592466b6190782cdd93e00b3d5020fd665372 --- M scripts/obs/data/build_rpm.sh 1 file changed, 20 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve laforge: Looks good to me, approved diff --git a/scripts/obs/data/build_rpm.sh b/scripts/obs/data/build_rpm.sh index 77efef2..63c3638 100755 --- a/scripts/obs/data/build_rpm.sh +++ b/scripts/obs/data/build_rpm.sh @@ -21,6 +21,9 @@ su "$BUILDUSER" -c "cp _temp/srcpkgs/$PACKAGE/rpmlintrc ~/rpmbuild/SOURCES" su "$BUILDUSER" -c "cp /obs/data/rpmmacros ~/.rpmmacros" +# Force refresh of package index data (OS#6038) +dnf makecache --refresh + $yum_builddep "/home/$BUILDUSER/rpmbuild/SPECS/$spec" su "$BUILDUSER" -c "rpmbuild -bb ~/rpmbuild/SPECS/$spec" -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/32789 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I6e2592466b6190782cdd93e00b3d5020fd665372 Gerrit-Change-Number: 32789 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-MessageType: merged