summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-06-10 23:13:58 +0200
committerJulian Andres Klode <jak@debian.org>2015-06-10 23:13:58 +0200
commita6e3d4d872b852de308f19a15215180cb4116765 (patch)
tree3c68cbfd6db2c8cec5f30f33e082dfbaf303a947 /python
parent1c99fa6d8e17d331a2f11ccf7061815cba03cb12 (diff)
downloadpython-apt-a6e3d4d872b852de308f19a15215180cb4116765.tar.gz
Acquire: Document that items may have transient errors on run() success
If run() succeeded, items may still have transient errors, like a Not Found error. Closes: #680997
Diffstat (limited to 'python')
-rw-r--r--python/acquire.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/acquire.cc b/python/acquire.cc
index 82968a9d..621f0eef 100644
--- a/python/acquire.cc
+++ b/python/acquire.cc
@@ -244,10 +244,11 @@ static PyObject *PkgAcquireShutdown(PyObject *Self,PyObject *Args)
static PyMethodDef PkgAcquireMethods[] = {
{"run",PkgAcquireRun,METH_VARARGS,
"run() -> int\n\nRun the fetcher and return one of RESULT_CANCELLED,\n"
- "RESULT_CONTINUE, RESULT_FAILED. RESULT_CONTINUE means that all items\n"
- "which where queued prior to calling run() have been fetched\n"
- "successfully. RESULT_CANCELLED means that the process was canceled\n"
- "by the progress class. And RESULT_FAILED means a generic failure."},
+ "RESULT_CONTINUE, RESULT_FAILED.\n\n"
+ "RESULT_CONTINUE means that all items which where queued prior to\n"
+ "calling run() have been fetched successfully or failed transiently.\n\n"
+ "RESULT_CANCELLED means canceled by the progress class.\n\n"
+ "RESULT_FAILED means a generic failure."},
{"shutdown",PkgAcquireShutdown, METH_VARARGS,
"shutdown()\n\n"
"Shut the fetcher down, removing all items from it. Future access to\n"