Bug 1129932 - Mock should expose yum --enablerepo and --disablerepo
Summary: Mock should expose yum --enablerepo and --disablerepo
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 20
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-08-14 03:09 UTC by Craig Ringer
Modified: 2014-10-15 14:01 UTC (History)
7 users (show)

Fixed In Version: mock-1.2.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-10-15 14:01:18 UTC

Attachments (Terms of Use)
Add --enablerepo and --disablerepo to mock (3.43 KB, patch)
2014-08-14 03:09 UTC, Craig Ringer
no flags Details | Diff

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:

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

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