[X2Go-Commits] [buildscripts] 01/01: bin/build-rpm-package: also support dnf.conf in addition to yum.conf.

git-admin at x2go.org git-admin at x2go.org
Sat May 15 23:10:50 CEST 2021


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 78ae2f88c8dde65c1fd6cd28fcc835774e5d5daf
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat May 15 23:10:43 2021 +0200

    bin/build-rpm-package: also support dnf.conf in addition to yum.conf.
---
 bin/build-rpm-package | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 0750cd6..0217b0e 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -388,7 +388,7 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET arch
 	done < "/etc/mock/${CUSTOM_REPO}"
 
 	typeset -i REPO_START=0
-	TMP_REGEX='^[[:space:]]*config_opts\['"'"'yum\.conf'"'"'\][[:space:]]*=[[:space:]]*"""[[:space:]]*$'
+	TMP_REGEX='^[[:space:]]*config_opts\['"'"'(yum|dnf)\.conf'"'"'\][[:space:]]*=[[:space:]]*"""[[:space:]]*$'
 	typeset TMP_REGEX_END='^[[:space:]]*"""[[:space:]]*$'
 
 	while read line; do

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list