summaryrefslogtreecommitdiff
path: root/python/progress.h
diff options
context:
space:
mode:
Diffstat (limited to 'python/progress.h')
-rw-r--r--python/progress.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/progress.h b/python/progress.h
index e92933a7..bc1bd640 100644
--- a/python/progress.h
+++ b/python/progress.h
@@ -94,6 +94,9 @@ struct PyOpProgress : public OpProgress, public PyCallbackObj
struct PyFetchProgress : public pkgAcquireStatus, public PyCallbackObj
{
+ protected:
+ PyObject *pyAcquire;
+ public:
enum {
DLDone, DLQueued, DLFailed, DLHit, DLIgnored
};
@@ -102,6 +105,10 @@ struct PyFetchProgress : public pkgAcquireStatus, public PyCallbackObj
virtual bool MediaChange(string Media, string Drive);
+ void setPyAcquire(PyObject *o) {
+ pyAcquire = o;
+ }
+
/* apt stuff */
virtual void IMSHit(pkgAcquire::ItemDesc &Itm);
virtual void Fetch(pkgAcquire::ItemDesc &Itm);