Skip to content

Commit

Permalink
Always pass --site with unsafe-yes
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jun 21, 2024
1 parent e8ae49b commit 0200e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ users)
## Opamfile

## External dependencies
* Correct flags passed to Cygwin setup for external installations [#6045 @dra27 fixes #6041]

## Format upgrade

Expand Down
7 changes: 4 additions & 3 deletions src/state/opamSysInteract.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1039,9 +1039,7 @@ let install_packages_commands_t ?(env=OpamVariable.Map.empty) config sys_package
] @ (if Cygwin.is_internal config then
let common =
[ "--upgrade-also";
"--only-site";
"--no-write-registry";
"--site"; Cygwin.mirror;
"--local-package-dir";
OpamFilename.Dir.to_string (Cygwin.internal_cygcache ());
]
Expand All @@ -1050,7 +1048,10 @@ let install_packages_commands_t ?(env=OpamVariable.Map.empty) config sys_package
"--symlink-type" :: "native" :: common
else
common
else [])
else []) @ (if Cygwin.is_internal config || unsafe_yes then
[ "--only-site";
"--site"; Cygwin.mirror;
])
],
None
| Debian ->
Expand Down

0 comments on commit 0200e1c

Please sign in to comment.