Skip to content

Commit 7db2ea6

Browse files
committed
Pass filenames only to createrepo_c
1 parent 862cfd9 commit 7db2ea6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.buildkite/steps/publish-rpm-package.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ updaterepo() {
2525
# Reuses the old package metadata, and add new packages with --pkglist.
2626
# createrepo_c tests that pkglist is a _regular_ file, so we can't use
2727
# a Bash process substitution i.e. <(find ...)
28+
# Note also that createrepo_c appends pkglist lines to the path it is given
29+
# to find files. Busybox find (in Alpine) has no -printf verb, so...........
30+
# go go gadget `awk`
2831
pkglist="$(mktemp pkglist.XXXXXXXX)"
29-
find "$1" -type f -name "*.rpm" > "${pkglist}"
32+
find "$1" -type f -name '*.rpm' | awk -F/ '{print $NF}' > "${pkglist}"
3033
createrepo_c \
3134
--no-database \
3235
--unique-md-filenames \

0 commit comments

Comments
 (0)