Bug 425824 - Setting value of "dist" in mock configs has no effect
Summary: Setting value of "dist" in mock configs has no effect
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-16 10:26 UTC by Ville Skyttä
Modified: 2013-01-10 01:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-12-17 04:27:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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