Bug 425824

Summary: Setting value of "dist" in mock configs has no effect
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
Component: mockAssignee: David Cantrell <dcantrell>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: mebrown
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-17 04:27:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ville Skyttä 2007-12-16 10:26:43 UTC
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

Comment 1 Michael E Brown 2007-12-17 04:27:46 UTC
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.