From c7123bea6a8dc2c9e327ce41ddfc25e29f1bb145 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 8 Jan 2021 17:52:53 +0100 Subject: 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...) --- doc/apt-get.8.xml | 4 ++++ doc/examples/configure-index | 1 + 2 files changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index 38a8c253a..0bdece955 100644 --- a/doc/apt-get.8.xml +++ b/doc/apt-get.8.xml @@ -646,6 +646,10 @@ + + Fail the update command if any error occured, even a transient one. + + &apt-commonoptions; diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 5ddf4132c..ecd54b6ba 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -166,6 +166,7 @@ APT { Pre-Invoke {"touch /var/lib/apt/pre-update-stamp"; }; Post-Invoke {"touch /var/lib/apt/post-update-stamp"; }; + Error-Mode ""; }; /* define a new supported compressor on the fly -- cgit v1.2.3