Setting the value of config_opts['dist'] in mock configs does not appear to have any effect. To reproduce: 1) Set config_opts['dist'] = 'foo9' in /etc/mock/fedora-devel-x86_64.cfg 2) Build a package that uses %{dist} 3) Find out that the resulting rpms were created using fc9 as the value of dist, not foo9 By the way, all the config files shipped with mock have a line that sets config_opts['dist']. I'm unable to find anything in mock sources that would actually use it. config_opts['macros']['dist'] would sound more logical, but setting this does not affect the value of dist in built packages either. mock-0.8.17-1.fc8
the only use for the dist variable right now is for use in the "--resultdir" argument. It currently does absolutely nothing else. Comment added to current git.