Skip to content

Commit

Permalink
avoid failures when using a repo file in Dockerfiles
Browse files Browse the repository at this point in the history
Should be cleaned up also for other cases and situations, but this
should help in most cases

build#590
  • Loading branch information
adrianschroeter committed Apr 20, 2021
1 parent dfbbe16 commit bdcfc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obs-docker-support
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ zypper() {
exec /usr/bin/zypper -D $LOCAL_REPOS_D "${globalopts[@]}" "$cmd" "$@"
;;
ar|addrepo)
exec /usr/bin/zypper "${globalopts[@]}" "$cmd" -C "$@"
exec /usr/bin/zypper "${globalopts[@]}" "$cmd" -C "${@%/*.repo}"
;;
ref|refresh)
echo "skipping zypper refresh"
Expand Down

0 comments on commit bdcfc07

Please sign in to comment.