Skip to content

Commit

Permalink
introduce --noupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Dec 31, 2023
1 parent 3f52b3d commit ebe9448
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion usr/bin/dist-installer-cli
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ update_sources(){
## won't be updated.

local simulate_only_maybe=""
if test "${dev}" = "1"; then
if test "${noupdate}" = "1"; then
## Too slow to run over and over again during testing.
simulate_only_maybe=true
fi
Expand Down Expand Up @@ -3610,6 +3610,7 @@ Developer options:
-n, --non-interactive
Set non-interactive mode, license will be accepted.
-D, --dev Set development mode. Empty image to download.
--noupdate Do not run package manager list update command. For development only.
--ci Set CI mode. Test running in CI.
--testers Set testers version to be downloaded.
-d, --dry-run Simulated run, log commands to info level without executing.
Expand Down Expand Up @@ -3647,6 +3648,7 @@ set_default(){
onion=""
non_interactive=""
dev=""
noupdate=""
dry_run=""
getversion=""
getopt=""
Expand Down Expand Up @@ -3770,6 +3772,9 @@ parse_opt(){
D|dev)
set_arg dev 1
;;
noupdate)
set_arg noupdate 1
;;
testers)
set_arg testers 1
;;
Expand Down

0 comments on commit ebe9448

Please sign in to comment.