Bug 1096440 - "TypeError: expected string or buffer" due to referencing wrong variable...
Summary: "TypeError: expected string or buffer" due to referencing wrong variable...
Keywords:
Status: CLOSED DUPLICATE of bug 1034805
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-10 09:55 UTC by Rick Elrod
Modified: 2014-05-12 07:58 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-12 07:58:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to use correct variable... (421 bytes, patch)
2014-05-10 09:55 UTC, Rick Elrod
no flags Details | Diff

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 ***


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