Remove asking for beta password interactively because it messes with beta branches

For example steamvr has a public beta branch, and it also includes shared redist depots which obviously have no beta branch.
pull/634/head
Pavel Djundik 5 months ago
parent 0d37091adf
commit c21489d304

@ -246,17 +246,10 @@ namespace DepotDownloader
return INVALID_MANIFEST_ID;
// Either the branch just doesn't exist, or it has a password
var password = Config.BetaPassword;
if (string.IsNullOrEmpty(password))
{
Console.WriteLine($"Branch {branch} was not found, either it does not exist or it has a password.");
}
while (string.IsNullOrEmpty(password))
if (string.IsNullOrEmpty(Config.BetaPassword))
{
Console.Write($"Please enter the password for branch {branch}: ");
Config.BetaPassword = password = Console.ReadLine();
Console.WriteLine($"Branch {branch} for depot {depotId} was not found, either it does not exist or it has a password.");
return INVALID_MANIFEST_ID;
}
if (!steam3.AppBetaPasswords.ContainsKey(branch))
@ -264,7 +257,7 @@ namespace DepotDownloader
// Submit the password to Steam now to get encryption keys
await steam3.CheckAppBetaPassword(appId, Config.BetaPassword);
if (!steam3.AppBetaPasswords.TryGetValue(branch, out var appBetaPassword))
if (!steam3.AppBetaPasswords.ContainsKey(branch))
{
Console.WriteLine($"Error: Password was invalid for branch {branch} (or the branch does not exist)");
return INVALID_MANIFEST_ID;
@ -549,6 +542,8 @@ namespace DepotDownloader
}
}
Console.WriteLine();
try
{
await DownloadSteam3Async(infos).ConfigureAwait(false);

Loading…
Cancel
Save