Bug 1129932

Summary: Mock should expose yum --enablerepo and --disablerepo
Product: [Fedora] Fedora Reporter: Craig Ringer <craig>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: jdisnard, mebrown, mizdebsk, msimacek, msuchy, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mock-1.2.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-15 14:01:18 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
Add --enablerepo and --disablerepo to mock none

Description Craig Ringer 2014-08-14 03:09:09 UTC
Created attachment 926614 [details]
Add --enablerepo and --disablerepo to mock

Mock doesn't expose any way to enable or disable repos on a per-invocation basis.

This makes it hard to do a test build without a repo enabled, then do some install tests with the repo enabled.

I propose to add --enablerepo and --disablerepo to mock, which pass through directly to yum, per the attached patch against mock 1.1.41 .

Comment 1 Mikolaj Izdebski 2014-08-14 07:04:37 UTC
FYI, this was already implemented by Michael Simacek in his version of mock prepared as part of GSoC. See:
http://xpath-of-light.blogspot.cz/
https://github.com/msimacek/mock

Comment 2 Miroslav Suchý 2014-08-14 14:35:55 UTC
Yes. This is sitting already in my inbox for two weeks and was not applied only because of Flock and my normal work I had to do. I asume I will apply it next week.

Comment 3 Miroslav Suchý 2014-10-15 14:01:18 UTC
This is present in current mock-1.2.0