Bug 224433

Summary: mock crashes with the --configdir switch
Product: [Retired] Fedora Hosted Projects Reporter: Carl Roth <roth>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dcantrell
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 0.6.13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-24 17:06:10 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:
Attachments:
Description Flags
Patch to fix --configdir handling in mock none

Description Carl Roth 2007-01-25 17:57:22 UTC
Description of problem:

Mock isn't able to use the --configdir switch.

When I run it, it crashes with

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'

This looks like a Python bug -- the 'os.file.exists' should probably be
'os.path.exists'.

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

mock-0.6.10-1.fc6

How reproducible:

Always

Steps to Reproduce:
1. Invoke mock with the --configdir switch
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Carl Roth 2007-01-25 20:41:10 UTC
Created attachment 146622 [details]
Patch to fix --configdir handling in mock

Comment 2 Clark Williams 2007-02-24 17:06:10 UTC
This was fixed in the 0.6.12 timeframe