summaryrefslogtreecommitdiff
path: root/doc
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 /doc
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 'doc')
-rw-r--r--doc/apt-get.8.xml4
-rw-r--r--doc/examples/configure-index1
2 files changed, 5 insertions, 0 deletions
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 @@
</para></listitem>
</varlistentry>
+ <varlistentry><term><option>-e<replaceable>any</replaceable></option></term><term><option>--error-on=<replaceable>any</replaceable></option></term>
+ <listitem><para>Fail the update command if any error occured, even a transient one.</para></listitem>
+ </varlistentry>
+
&apt-commonoptions;
</variablelist>
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 "<STRING>";
};
/* define a new supported compressor on the fly