Skip to content

Commit

Permalink
Fix dnf.conf in case a section is missed
Browse files Browse the repository at this point in the history
Resolves: latchset#132

Signed-off-by: Sergio Arroutbi <[email protected]>
  • Loading branch information
sarroutbi committed Jun 1, 2023
1 parent 33b9e0b commit 890f736
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/install-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ debian:*|ubuntu:*)
;;

fedora:*)
grep -e '\[[a-z]*\]' /etc/dnf/dnf.conf ||
{
printf '[main]\n' >> /etc/dnf/dnf.conf.fixed
cat /etc/dnf/dnf.conf >> /etc/dnf/dnf.conf.fixed
mv /etc/dnf/dnf.conf.fixed /etc/dnf/dnf.conf
}
echo 'max_parallel_downloads=10' >> /etc/dnf/dnf.conf
echo '--------------- /etc/dnf/dnf.conf -------------'
cat /etc/dnf/dnf.conf
echo '--------------- /etc/dnf/dnf.conf -------------'
dnf -y clean all
dnf -y --setopt=deltarpm=0 update
dnf -y install ${COMMON} pkgconfig openssl-devel zlib-devel jansson-devel
Expand Down

0 comments on commit 890f736

Please sign in to comment.