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 <Al.Bailey@windriver.com>
This commit is contained in:
Al Bailey 2018-10-22 13:48:59 -05:00
parent 0ed04ca11c
commit 1615f28109
1 changed files with 3 additions and 0 deletions

View File

@ -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