Bug 425824 - Setting value of "dist" in mock configs has no effect
Setting value of "dist" in mock configs has no effect
Product: Fedora
Classification: Fedora
Component: mock (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: David Cantrell
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-12-16 05:26 EST by Ville Skyttä
Modified: 2013-01-09 20:44 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-12-16 23:27:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ville Skyttä 2007-12-16 05:26:43 EST
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.

Comment 1 Michael E Brown 2007-12-16 23:27:46 EST
the only use for the dist variable right now is for use in the "--resultdir"

It currently does absolutely nothing else.

Comment added to current git.

Note You need to log in before you can comment on or make changes to this bug.