Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/cmd-build-with-buildah
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,13 @@ build_with_buildah() {
fi

if [ -d overrides ]; then
if [[ -n $(ls overrides/rpm/*.rpm 2> /dev/null) ]]; then
(cd overrides/rpm && rm -rf .repodata && createrepo_c .)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I don't understand what exactly you were hitting.

Actually, is the bug here just s/.repodata/repodata? Though this was cargo-culted from

(cd "${overridesdir}"/rpm && rm -rf .repodata && createrepo_c .)
.

if [ -d overrides/rpm ]; then
# Clean up any previous repo metadata
rm -rf overrides/rpm/repodata
if [[ -n $(ls overrides/rpm/*.rpm 2> /dev/null) ]]; then
# Generate new repo metadata since there are RPMs
(cd overrides/rpm && createrepo_c .)
fi
fi
set -- "$@" -v "$(realpath overrides)":/run/src/overrides
fi
Expand Down
Loading