Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit 7b98723

Browse files
authored
only one confirmation
1 parent dbf0072 commit 7b98723

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/install.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def write_installed_versions(path, versions):
172172
): # example is set to be outdated for demonstration
173173
status(f'The package "{package}" is outdated! ', "error")
174174
console.print("::", style="blue bold", end=" ")
175-
sure = input("Install dependencies and build? (Y/n) ")
175+
sure = input("Install? (Y/n) ")
176176
if sure not in ("", "y", "Y"):
177177
return
178178

@@ -193,14 +193,6 @@ def write_installed_versions(path, versions):
193193
except Exception:
194194
pass
195195

196-
# ask for confirmation
197-
# todo: make confirmation prompts better by mixing into one
198-
if not noconfirm:
199-
console.print("::", style="blue bold", end=" ")
200-
sure = input("Install? (Y/n) ")
201-
if sure not in ("", "y", "Y"):
202-
return
203-
204196
# install, required hook
205197
status("Installing", "ok")
206198
install_script.install()

0 commit comments

Comments
 (0)