Skip to content

Commit

Permalink
Merge pull request #2315 from buildkite/speed-up-publish-rpm
Browse files Browse the repository at this point in the history
Add --skip-stat
  • Loading branch information
DrJosh9000 authored Aug 23, 2023
2 parents f2ddfdc + b7f8643 commit 8f07ffa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .buildkite/steps/publish-rpm-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ updaterepo() {
# Reuses the old package metadata, and add new packages with --pkglist.
# createrepo_c tests that pkglist is a _regular_ file, so we can't use
# a Bash process substitution i.e. <(find ...)
# --skip-stat prevents createrepo_c from trying to stat all the RPMs that
# aren't synced here.
# Note also that createrepo_c appends pkglist lines to the path it is given
# to find files. Busybox find (in Alpine) has no -printf verb, so...........
# go go gadget `awk`
Expand All @@ -34,6 +36,7 @@ updaterepo() {
--no-database \
--unique-md-filenames \
--retain-old-md-by-age=180d \
--skip-stat \
--update \
--pkglist "${pkglist}" \
--recycle-pkglist \
Expand Down

0 comments on commit 8f07ffa

Please sign in to comment.