summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-07-23 16:37:13 +0200
committerJulian Andres Klode <jak@debian.org>2010-07-23 16:37:13 +0200
commitd642c9ea22f5705acfcba79493f48293626771c3 (patch)
tree63e129b1dd05eefc9bd8dbe96a59d37c14c6e060 /python
parentd4982e0e6d4b4fefb55043bb999784f5cfb2b686 (diff)
downloadpython-apt-d642c9ea22f5705acfcba79493f48293626771c3.tar.gz
* python/apt_pkgmodule.cc:
- Bind pkgAcquire::Item::StatTransientNetworkError (Closes: #589010)
Diffstat (limited to 'python')
-rw-r--r--python/apt_pkgmodule.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc
index a1e9ada0..cacbf77a 100644
--- a/python/apt_pkgmodule.cc
+++ b/python/apt_pkgmodule.cc
@@ -905,6 +905,8 @@ extern "C" void initapt_pkg()
Py_BuildValue("i", pkgAcquire::Item::StatFetching));
PyDict_SetItemString(PyAcquireItem_Type.tp_dict, "STAT_DONE",
Py_BuildValue("i", pkgAcquire::Item::StatDone));
+ PyDict_SetItemString(PyAcquireItem_Type.tp_dict, "STAT_TRANSIENT_NETWORK_ERROR",
+ Py_BuildValue("i", pkgAcquire::Item::StatTransientNetworkError));
PyDict_SetItemString(PyAcquireItem_Type.tp_dict, "STAT_ERROR",
Py_BuildValue("i", pkgAcquire::Item::StatError));
PyDict_SetItemString(PyAcquireItem_Type.tp_dict, "STAT_AUTH_ERROR",