We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 862cfd9 commit 7db2ea6Copy full SHA for 7db2ea6
.buildkite/steps/publish-rpm-package.sh
@@ -25,8 +25,11 @@ updaterepo() {
25
# Reuses the old package metadata, and add new packages with --pkglist.
26
# createrepo_c tests that pkglist is a _regular_ file, so we can't use
27
# 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`
31
pkglist="$(mktemp pkglist.XXXXXXXX)"
- find "$1" -type f -name "*.rpm" > "${pkglist}"
32
+ find "$1" -type f -name '*.rpm' | awk -F/ '{print $NF}' > "${pkglist}"
33
createrepo_c \
34
--no-database \
35
--unique-md-filenames \
0 commit comments