From 007fd304fe99b0d97b8039a8c1a83ac749e876f9 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 16 Jul 2009 20:00:27 +0200 Subject: python/progress.cc: Call fail() on AcquireProgress objects. --- python/progress.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/progress.cc') diff --git a/python/progress.cc b/python/progress.cc index 6f226ef8..450b7654 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -179,6 +179,11 @@ void PyFetchProgress::Done(pkgAcquire::ItemDesc &Itm) void PyFetchProgress::Fail(pkgAcquire::ItemDesc &Itm) { + if (PyObject_TypeCheck(callbackInst,&PyAcquireProgress_Type)) { + RunSimpleCallback("fail", TUPLEIZE(PyAcquireItemDesc_FromCpp(&Itm))); + return; + } + // Ignore certain kinds of transient failures (bad code) if (Itm.Owner->Status == pkgAcquire::Item::StatIdle) return; -- cgit v1.2.3