cob icon indicating copy to clipboard operation
cob copied to clipboard

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

Open rmt opened this issue 9 years ago • 1 comments

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()

rmt avatar Feb 01 '16 10:02 rmt

@rmt thanks for your info, i am looking into this issue now.

henrysher avatar Mar 07 '16 09:03 henrysher