Skip to content

Commit bec0dbf

Browse files
committed
CA-423213: Fix bundle URL construct
Without the host parameter, Uri.make returns `file:/path/to/file`. dnf expects the `file:///path/to/file` variant - using the single slash variant leads to a failure to locate the signature file. Signed-off-by: Alex Brett <alex.brett@citrix.com>
1 parent 1b75c36 commit bec0dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/xapi/repository.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ let sync ~__context ~self ~token ~token_id ~username ~password =
169169
)
170170
| `bundle ->
171171
let uri =
172-
Uri.make ~scheme:"file" ~path:!Xapi_globs.bundle_repository_dir ()
172+
Printf.sprintf "file://%s" !Xapi_globs.bundle_repository_dir
173173
in
174-
(Uri.to_string uri, None, false, NoAuth, NoAuth)
174+
(uri, None, false, NoAuth, NoAuth)
175175
| `remote_pool ->
176176
let cert = Db.Repository.get_certificate ~__context ~self in
177177
let repo_binary_url = Db.Repository.get_binary_url ~__context ~self in

0 commit comments

Comments
 (0)