diff options
author | Oliver Smith <osmith@sysmocom.de> | 2023-05-19 10:14:24 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2023-05-19 10:14:24 +0200 |
commit | cdd4eece45ccf1cf4ac60e96ff6483c9b53a4324 (patch) | |
tree | ce9b93f946f1bcf0bfd21f7cdee034831127a05f | |
parent | 0b87eb3fbfa42f2a5aed80d43a3435956bddf6dc (diff) |
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
-rwxr-xr-x | scripts/obs/data/build_rpm.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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/*.tar.* ~/rpmbuild/SOURCES" 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" |