Features:
You can run:
mock --config-opts yum_command=/usr/bin/yum-deprecated --enable-network
which will set:
config_opts['system_yum_command'] = '/usr/bin/yum'
or for a list:
mock --config-opts extra_chroot_dirs=/mnt/b --config-opts extra_chroot_dirs=/mnt/a
which will set
config_opts['extra_chroot_dirs'] = ['/mnt/b', '/mnt/a']
or list with a single item:
mock --config-opts extra_chroot_dirs=/mnt/b --config-opts extra_chroot_dirs=
which will set
config_opts['extra_chroot_dirs'] = ['/mnt/b']
It can detect boolean:
mock --config-opts nosync=False --debug-config |grep nosync
config_opts['nosync'] = False
A specialized option has priority. Therefore:
mock --config-opts rpmbuild_networking=False --enable-network --debug-config |grep rpmbuild_networking
config_opts['rpmbuild_networking'] = True
It is unable to set complicated variables. Like config_opts['plugin_conf']['package_state_opts'] or anything which has dictionary as value.
--enable-network
which is equivalent to config_opts['rpmbuild_networking'] = True
Bugfixes:
mock shell
does not work. #1468837. This was a glibc bug and it is resolved in rawhide now.Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:
sudo dnf upgrade --refresh --advisory=FEDORA-2017-e954edb1bb
Please log in to add feedback.
This update has been submitted for testing by msuchy.
msuchy edited this update.
This update has been pushed to testing.
This update has reached 7 days in testing and can be pushed to stable now if the maintainer wishes
Works
This update has been submitted for batched by msuchy.
This update has been submitted for stable by bodhi.
This update has been pushed to stable.