Multiple config dirs #1078
-
Is it possible to tell mock to use multiple config dirs? Say I wanted a custom configuration in a dir I am able to create and use |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
No. You can have more config and they are read in specified order. See bottom of https://rpm-software-management.github.io/mock/configuration But you cannot specify multiple configdirs. Note that config dir is just a python file, so you can do anything there. But do not depend too much on that as we have plan to change it. But I think you are safe for year or two. Or five. |
Beta Was this translation helpful? Give feedback.
-
But you have to admit that the practice of starting to include other configs in a config makes it difficult to just pull one config from the configs, place it into a new dir, modify it as you want and then refer to that new dir to get your modified config. Now we have to copy the entire config dir rather than just having mock fall back to the original config dir to pick up the unmodified config files that are referenced in a modified config's Does the above methodology for modifying a stock config not make sense? Is there a better way to achieve that? |
Beta Was this translation helpful? Give feedback.
-
If you put your config files in |
Beta Was this translation helpful? Give feedback.
-
Indeed. It's even easier/better than that. If you append This completely satisfies my requirement. |
Beta Was this translation helpful? Give feedback.
No. You can have more config and they are read in specified order. See bottom of https://rpm-software-management.github.io/mock/configuration
But you cannot specify multiple configdirs.
Note that config dir is just a python file, so you can do anything there. But do not depend too much on that as we have plan to change it. But I think you are safe for year or two. Or five.