Skip to content

Commit

Permalink
Merge pull request #3312 from eseiler/fix/version_check
Browse files Browse the repository at this point in the history
[FIX] version check URL, default for prompt
  • Loading branch information
eseiler authored Dec 9, 2024
2 parents 8759edd + 3901abf commit 29c2e98
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/seqan3/argument_parser/detail/version_check.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class version_checker
// build up command for server call
std::string command = program + // no user defined input
" " + out_file.string() + " "
+ std::string{"http://seqan-update.informatik.uni-tuebingen.de/check/SeqAn3_"} +
+ std::string{"https://seqan-update.cs.uni-tuebingen.de/check/SeqAn3_"} +
#ifdef __linux
"Linux" +
#elif __APPLE__
Expand Down Expand Up @@ -345,10 +345,10 @@ class version_checker
This app can look for updates automatically in the background,
do you want to do that?
[a] Always perform version checks for this app (the default).
[a] Always perform version checks for this app.
[n] Never perform version checks for this app.
[y] Yes, perform a version check now, and ask again tomorrow.
[s] Skip the version check now, but ask again tomorrow.
[s] Skip the version check now, but ask again tomorrow (the default).
Please enter one of [a, n, y, s] and press [RETURN].
Expand All @@ -360,17 +360,18 @@ class version_checker
)";
std::string line{};
std::getline(std::cin, line);
line.resize(1); // ignore everything but the first char or resizes the empty string to the default
line.resize(1, 's'); // ignore everything but the first char or resizes the empty string to the default

switch (line[0])
{
case 'y':
{
return true;
}
case 's':
case 'a':
{
return false;
write_cookie(std::string{"ALWAYS"}); // overwrite cookie
return true;
}
case 'n':
{
Expand All @@ -379,8 +380,7 @@ class version_checker
}
default:
{
write_cookie(std::string{"ALWAYS"}); // overwrite cookie
return true;
return false;
}
}
}
Expand Down

0 comments on commit 29c2e98

Please sign in to comment.