Skip to content

Commit

Permalink
ci: fix copr build Unknown argument "builddep" for command "dnf5"
Browse files Browse the repository at this point in the history
The copr build environment needs dnf5-command(builddep) installed
to run "dnf builddep"

Signed-off-by: Xiaofeng Wang <[email protected]>
  • Loading branch information
henrywang committed Dec 25, 2024
1 parent 8c19a54 commit 0bb9515
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/libbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ pkg_install() {

pkg_builddep_spec() {
if test -x /usr/bin/dnf5; then
# copr build dnf5 environment deps
dnf install -y 'dnf5-command(builddep)'
dnf builddep -y "$@"
else
dnf builddep -y --spec "$@"
Expand Down

0 comments on commit 0bb9515

Please sign in to comment.