Skip to content

Disabled repos are ignored, even if they are enabled with the --enablerepo flag #5

@rmt

Description

@rmt

I have a repository that I prefer to leave disabled until I explicitly enable it, but cob doesn't support this scenario.

The following seems to do the trick, but I'd rather you patch it (knowing the yum codebase a bit better than myself):

In init_hook, instead of

if isinstance(repo, YumRepository) and repo.enabled:

just

if isinstance(repo, YumRepository):

And in S3Repository.__init__:

if repo.enabled:
    self.enable()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions