Bug 880849

Summary: mockchain addrepo creates bad repo id
Product: [Fedora] Fedora Reporter: Tim Woods <timw.fedora>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: mebrown, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-04 22:44:13 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:
Description Flags
[PATCH] Fix mockchain repo id calculation none

Description Tim Woods 2012-11-27 22:12:24 UTC
Description of problem:
Using the addrepo (-a) option of mockchain with a slash (/) in the path will cause a "Bad id for repo" message to appear in the root.log file.  If there are required dependencies in the additional repository, they will not be found and the build will fail.

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

How reproducible:

Steps to Reproduce:
1. Create a source RPM that has dependencies not found in the standard
2. Create a yum repository with the non-standard dependencies:
   createrepo /home/build/myrepo
3. Attempt to build a package that requires dependencies from myrepo:
   mockchain -r fedora-17-i386 -l output -a file:///home/build/myrepo \

Actual results:
mockchain fails to install dependencies from the specified addition repository.  In the output/results/fedora-17-i386/mypackage-1.0-1/root.log file, the following error message appears:
DEBUG util.py:258:  Bad id for repo: ,home,build,myrepo

Expected results:
mockchain finds and installs the dependencies in myrepo before attempting to build mypackage.

Comment 1 Tim Woods 2012-11-27 22:32:38 UTC
Created attachment 653167 [details]
[PATCH] Fix mockchain repo id calculation

The attached patch uses an underscore (_) instead of a comma (,) for the repo id separator replacement.

Comment 2 Clark Williams 2012-11-28 16:12:08 UTC
Applied and queued for next release

Comment 3 Fedora Update System 2013-02-26 22:17:24 UTC
mock-1.1.29-1.fc17 has been submitted as an update for Fedora 17.

Comment 4 Fedora Update System 2013-02-26 22:17:54 UTC
mock-1.1.29-1.el6 has been submitted as an update for Fedora EPEL 6.

Comment 5 Fedora Update System 2013-02-26 22:18:27 UTC
mock-1.1.29-1.fc18 has been submitted as an update for Fedora 18.

Comment 6 Fedora Update System 2013-02-27 18:04:36 UTC
Package mock-1.1.29-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing mock-1.1.29-1.el6'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-03-04 22:44:15 UTC
mock-1.1.29-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2013-03-23 23:55:13 UTC
mock-1.1.29-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.