Bug 1096440

Summary: "TypeError: expected string or buffer" due to referencing wrong variable...
Product: [Fedora] Fedora Reporter: Rick Elrod <relrod>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mebrown, msuchy, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-12 07:58:00 UTC Type: Bug
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 use correct variable... none

Description Rick Elrod 2014-05-10 09:55:12 UTC
Created attachment 894219 [details]
Patch to use correct variable...

Description of problem:


[root@ip-10-7-158-225 srpms]# mockchain -r fedora-20-x86_64 -a http://copr-be.cloud.fedoraproject.org/results/petersen/ghc-7.8/fedora-20-x86_64/ --log=log *
starting logfile: /var/tmp/mock-chain-fedora-15346-SLGjko/log
results dir: /var/tmp/mock-chain-fedora-15346-SLGjko/results/fedora-20-x86_64
config dir: /var/tmp/mock-chain-fedora-15346-SLGjko/configs/fedora-20-x86_64
Traceback (most recent call last):
  File "/bin/mockchain", line 353, in <module>
    main(sys.argv)
  File "/bin/mockchain", line 252, in main
    res, msg =  add_local_repo(my_mock_config, my_mock_config, baseurl)
  File "/bin/mockchain", line 106, in add_local_repo
    repoid = re.sub(r'[^a-zA-Z0-9_]', '', repoid)
  File "/usr/lib64/python2.7/re.py", line 151, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer

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

mock-1.1.38-1.fc20.noarch

How reproducible: Always


Steps to Reproduce: (See above example)

Additional info: Patch is attached.

Comment 1 Miroslav Suchý 2014-05-12 07:58:00 UTC

*** This bug has been marked as a duplicate of bug 1034805 ***