From 1615f281093af91da3b998209ff90bbfd0c74350 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Mon, 22 Oct 2018 13:48:59 -0500 Subject: [PATCH] Support for network access from within mock. In order to run certain networking actions within mock, this flag needs to be a part of the config for the build env. For example: running helm commands in a spec file. Story: 2003909 Task: 27632 Depends-On: I0331bf409c25078bb61d6a9b09e3107366030c01 Change-Id: I5c761b9261e72783f1771492d653e641193f7c52 Signed-off-by: Al Bailey --- build-tools/modify-build-cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-tools/modify-build-cfg b/build-tools/modify-build-cfg index 26694a6c..ba235d72 100755 --- a/build-tools/modify-build-cfg +++ b/build-tools/modify-build-cfg @@ -95,6 +95,9 @@ fi grep -q "config_opts\['chroot_setup_cmd'\] = 'install @buildsys-build pigz lbzip2 yum'" $FILE || \ echo "config_opts['chroot_setup_cmd'] = 'install @buildsys-build pigz lbzip2 yum'" >> $FILE +# rpmbuild_networking is required for invoking helm commands within mock +grep -q "config_opts\['rpmbuild_networking'\] = True" $FILE || \ + echo "config_opts['rpmbuild_networking'] = True" >> $FILE # # Read macros from tis.macros to add to the build config file, # for use in RPM spec files