summaryrefslogtreecommitdiff
path: root/python/progress.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-22 18:16:28 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-22 18:16:28 +0200
commit544f14e0f2fb70b5a1f30786a93023a42d88290d (patch)
tree22a6cb60e5bc61e2c45f7cae37acd96a9419b4c3 /python/progress.cc
parent6ba42d2e31f161fc0ebe5405cf63b616c3e822b4 (diff)
downloadpython-apt-544f14e0f2fb70b5a1f30786a93023a42d88290d.tar.gz
python: 2nd part of the acquire fixes (one PyObject per C++ object).
Diffstat (limited to 'python/progress.cc')
-rw-r--r--python/progress.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/progress.cc b/python/progress.cc
index 1b135a75..7873d894 100644
--- a/python/progress.cc
+++ b/python/progress.cc
@@ -175,7 +175,7 @@ void PyFetchProgress::IMSHit(pkgAcquire::ItemDesc &Itm)
{
PyCbObj_END_ALLOW_THREADS
if (PyObject_TypeCheck(callbackInst,&PyAcquireProgress_Type))
- RunSimpleCallback("ims_hit", TUPLEIZE(PyAcquireItemDesc_FromCpp(&Itm)));
+ RunSimpleCallback("ims_hit", TUPLEIZE(PyAcquire_GetItemDesc(pyAcquire, &Itm)));
else
UpdateStatus(Itm, DLHit);
PyCbObj_BEGIN_ALLOW_THREADS
@@ -185,7 +185,7 @@ void PyFetchProgress::Fetch(pkgAcquire::ItemDesc &Itm)
{
PyCbObj_END_ALLOW_THREADS
if (PyObject_TypeCheck(callbackInst,&PyAcquireProgress_Type))
- RunSimpleCallback("fetch", TUPLEIZE(PyAcquireItemDesc_FromCpp(&Itm)));
+ RunSimpleCallback("fetch", TUPLEIZE(PyAcquire_GetItemDesc(pyAcquire, &Itm)));
else
UpdateStatus(Itm, DLQueued);
PyCbObj_BEGIN_ALLOW_THREADS
@@ -195,7 +195,7 @@ void PyFetchProgress::Done(pkgAcquire::ItemDesc &Itm)
{
PyCbObj_END_ALLOW_THREADS
if (PyObject_TypeCheck(callbackInst,&PyAcquireProgress_Type))
- RunSimpleCallback("done", TUPLEIZE(PyAcquireItemDesc_FromCpp(&Itm)));
+ RunSimpleCallback("done", TUPLEIZE(PyAcquire_GetItemDesc(pyAcquire, &Itm)));
else
UpdateStatus(Itm, DLDone);
PyCbObj_BEGIN_ALLOW_THREADS
@@ -205,7 +205,7 @@ void PyFetchProgress::Fail(pkgAcquire::ItemDesc &Itm)
{
PyCbObj_END_ALLOW_THREADS
if (PyObject_TypeCheck(callbackInst,&PyAcquireProgress_Type)) {
- RunSimpleCallback("fail", TUPLEIZE(PyAcquireItemDesc_FromCpp(&Itm)));
+ RunSimpleCallback("fail", TUPLEIZE(PyAcquire_GetItemDesc(pyAcquire, &Itm)));
return;
}
@@ -220,7 +220,7 @@ void PyFetchProgress::Fail(pkgAcquire::ItemDesc &Itm)
if (PyObject_TypeCheck(callbackInst,&PyAcquireProgress_Type))
- RunSimpleCallback("fail", TUPLEIZE(PyAcquireItemDesc_FromCpp(&Itm)));
+ RunSimpleCallback("fail", TUPLEIZE(PyAcquire_GetItemDesc(pyAcquire, &Itm)));
else
UpdateStatus(Itm, DLFailed);
PyCbObj_BEGIN_ALLOW_THREADS