Bug 227816 - mock can't use alternate config path properly
mock can't use alternate config path properly
Status: CLOSED NEXTRELEASE
Product: Fedora Hosted Projects
Classification: Retired
Component: mock (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Clark Williams
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-08 07:48 EST by Paul W. Frields
Modified: 2013-01-09 23:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-02-08 10:45:06 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to correct attribute error (465 bytes, patch)
2007-02-08 07:48 EST, Paul W. Frields
no flags Details | Diff

  None (edit)
Description Paul W. Frields 2007-02-08 07:48:04 EST
Description of problem:
When I set --configdir mock produces an error (see below).


Version-Release number of selected component (if applicable):
0.6.10-1

How reproducible:
Every time

Steps to Reproduce:
1. mock --configdir=$HOME -r '<some_cfg_name>' <my.src.rpm>

  
Actual results:
Traceback (most recent call last):
  File "/usr/bin/mock", line 995, in ?
    main()
  File "/usr/bin/mock", line 941, in main
    if config_path != "/etc/mock" and os.file.exists("/etc/mock/defaults.cfg"):
AttributeError: 'module' object has no attribute 'file'


Expected results:
Working.

Additional info:
Patch attached, just a simple attribute error.
Comment 1 Paul W. Frields 2007-02-08 07:48:05 EST
Created attachment 147651 [details]
Patch to correct attribute error
Comment 2 Clark Williams 2007-02-08 10:45:06 EST
I ran in to this yesterday and the pending 0.6.11 release should fix it.

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