1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-06-26 04:00:43 +03:00

Allow use of the -dry command line option with -confirmed

This commit is contained in:
David Kinder 2023-08-01 19:16:31 +01:00
parent 4171e2ffc4
commit 9aa9e86cd9
2 changed files with 5 additions and 4 deletions

View file

@ -114,7 +114,9 @@ error in this case.
@<Perform an extension installation@> =
Supervisor::go_operational();
ExtensionInstaller::install(to_install, confirmed, path_to_inbuild);
int use = SHELL_METHODOLOGY;
if (dry_run_mode) use = DRY_RUN_METHODOLOGY;
ExtensionInstaller::install(to_install, confirmed, path_to_inbuild, use);
@<Document from a file@> =
if (documentation_dest == NULL)

View file

@ -45,7 +45,7 @@ the Installer is called again, with |confirmed| true. It takes action and also
produces a second report.
=
void ExtensionInstaller::install(inbuild_copy *C, int confirmed, pathname *to_tool) {
void ExtensionInstaller::install(inbuild_copy *C, int confirmed, pathname *to_tool, int meth) {
inform_project *project = Supervisor::project_set_at_command_line();
if (project == NULL) Errors::fatal("-project not set at command line");
TEMPORARY_TEXT(pname)
@ -332,8 +332,7 @@ void ExtensionInstaller::install(inbuild_copy *C, int confirmed, pathname *to_to
}
@<Make confirmed report@> =
int use = SHELL_METHODOLOGY;
build_methodology *BM = BuildMethodology::new(Pathnames::up(to_tool), TRUE, use);
build_methodology *BM = BuildMethodology::new(Pathnames::up(to_tool), TRUE, meth);
Copies::copy_to(C, Projects::materials_nest(project), TRUE, BM);
HTML_OPEN("p");
WRITE("This extension has now been installed in the materials folder for %S, as:", pname);