Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Support specifying packages option for Cachito
Browse files Browse the repository at this point in the history
Allow user to customize `packages` option for Cachito configuration.
See https://osbs.readthedocs.io/en/osbs_ocp3/users.html#remote-source-keys for details.
  • Loading branch information
vfreex committed May 17, 2022
1 parent f3e6685 commit 12adaf3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doozerlib/distgit.py
Expand Up @@ -534,7 +534,11 @@ def _generate_osbs_image_config(self, version: str) -> Dict:
}
if flags:
remote_source['flags'] = flags
if self.config.content.source.path: # source is in subdirectory
# Allow user to customize `packages` option for Cachito configuration.
# See https://osbs.readthedocs.io/en/osbs_ocp3/users.html#remote-source-keys for details.
if self.config.cachito.packages is not Missing:
remote_source['packages'] = self.config.cachito.packages.primitive()
elif self.config.content.source.path: # source is in subdirectory
remote_source['packages'] = {pkg_manager: [{"path": self.config.content.source.path}] for pkg_manager in pkg_managers}
config_overrides.update({
'remote_sources': [
Expand Down

0 comments on commit 12adaf3

Please sign in to comment.