summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2021-01-08 17:52:53 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2021-01-08 17:58:44 +0100
commitc7123bea6a8dc2c9e327ce41ddfc25e29f1bb145 (patch)
tree979d87e4f479100dda85f65452eba90fb4053b41 /apt-private
parentd35d51ddbdc75512a73e713972f4bbb5a1fd73ae (diff)
Implement update --error-on=any
People have been asking for a feature to error out on transient network errors for a while, this gives them one while keeping the door open for other modes we need, such as --error-on=no-success which we need to determine when to retry the daily update job. Closes: #594813 (and a whole bunch of duplicates...)
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-cmndline.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc
index 2049842db..2884dccba 100644
--- a/apt-private/private-cmndline.cc
+++ b/apt-private/private-cmndline.cc
@@ -206,6 +206,7 @@ static bool addArgumentsAPTGet(std::vector<CommandLine::Args> &Args, char const
addArg(0, "allow-releaseinfo-change-codename", "Acquire::AllowReleaseInfoChange::Codename", 0);
addArg(0, "allow-releaseinfo-change-suite", "Acquire::AllowReleaseInfoChange::Suite", 0);
addArg(0, "allow-releaseinfo-change-defaultpin", "Acquire::AllowReleaseInfoChange::DefaultPin", 0);
+ addArg('e', "error-on", "APT::Update::Error-Mode", CommandLine::HasArg);
}
else if (CmdMatches("source"))
{