Skip to content

Commit 215f222

Browse files
committed
cmd-build-with-buildah: limit adding overrides mount
If there are no rpms then no point in adding the mount. Should prevent cosmetic warts like: ``` Updating and loading repositories: overrides ???% | 0.0 B/s | -1.0 B | ? >>> Curl error (37): Could not read a file:// file for file:///run/src/overrides >>> Usable URL not found ```
1 parent 43c9c43 commit 215f222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd-build-with-buildah

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ build_with_buildah() {
165165
if [ -d overrides ]; then
166166
if [[ -n $(ls overrides/rpm/*.rpm 2> /dev/null) ]]; then
167167
(cd overrides/rpm && rm -rf .repodata && createrepo_c .)
168+
set -- "$@" -v "$(realpath overrides)":/run/src/overrides
168169
fi
169-
set -- "$@" -v "$(realpath overrides)":/run/src/overrides
170170
fi
171171

172172
if [ -n "$DIRECT" ]; then

0 commit comments

Comments
 (0)