File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -293,11 +293,11 @@ let sync ~__context ~self ~token ~token_id ~username ~password =
293293 * will always write_initial_yum_config every time before syncing repo,
294294 * this should be ok.
295295 *)
296- if Pkgs. manager = Yum then
297- write_initial_yum_config ~binary_url
298- else
299- Unixext. unlink_safe ! Xapi_globs. dnf_repo_config_file
300-
296+ match Pkgs. manager with
297+ | Yum ->
298+ write_initial_yum_config ~binary_url
299+ | Dnf ->
300+ Unixext. unlink_safe ! Xapi_globs. dnf_repo_config_file
301301 ) ;
302302 (* The custom yum-utils will fully download repository metadata including
303303 * the repo gpg signature.
Original file line number Diff line number Diff line change @@ -972,7 +972,8 @@ let pvsproxy_close_cache_vdi = ref "/opt/citrix/pvsproxy/close-cache-vdi.sh"
972972
973973let yum_repos_config_dir = ref " /etc/yum.repos.d"
974974
975- let dnf_repo_config_file = ref " /etc/dnf/repos.override.d/99-config_manager.repo"
975+ let dnf_repo_config_file =
976+ ref " /etc/dnf/repos.override.d/99-config_manager.repo"
976977
977978let remote_repository_prefix = ref " remote"
978979
You can’t perform that action at this time.
0 commit comments