Skip to content

Robust Internet check#157

Open
FrankiePustorino wants to merge 2 commits into
Utappia:developfrom
FrankiePustorino:patch-6
Open

Robust Internet check#157
FrankiePustorino wants to merge 2 commits into
Utappia:developfrom
FrankiePustorino:patch-6

Conversation

@FrankiePustorino
Copy link
Copy Markdown
Contributor

Three concrete changes:

Improve CHECK_INTERNET — add a wget fallback if curl is absent, a DNS resolution tier between HTTP and ping, and 2 retry attempts with a brief gap before giving up

Add REQUIRE_INTERNET — a wrapper that calls CHECK_INTERNET and handles the exit messaging, callable from anywhere

Remove the top-level gate — put REQUIRE_INTERNET inside PREUPDATE_PREFLIGHT (all maintenance paths go through it) and inside UPGRADE_EOL_TO_NEXT (its own path); add a pre-scan before the while loop so --help and --version exit before anything network-related is even reached

Three concrete changes:

Improve CHECK_INTERNET — add a wget fallback if curl is absent, a DNS resolution tier between HTTP and ping, and 2 retry attempts with a brief gap before giving up

Add REQUIRE_INTERNET — a wrapper that calls CHECK_INTERNET and handles the exit messaging, callable from anywhere

Remove the top-level gate — put REQUIRE_INTERNET inside PREUPDATE_PREFLIGHT (all maintenance paths go through it) and inside UPGRADE_EOL_TO_NEXT (its own path); add a pre-scan before the while loop so --help and --version exit before anything network-related is even reached
Copy link
Copy Markdown
Contributor Author

@FrankiePustorino FrankiePustorino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added also the pull request 158 in this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant