summaryrefslogtreecommitdiff
path: root/python/progress.cc
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@glatzor.de>2008-08-25 00:08:23 +0200
committerSebastian Heinlein <sebi@glatzor.de>2008-08-25 00:08:23 +0200
commitee8376bb4355b58b7816ab5c184dba1af231d76b (patch)
treeb53998fc74303a5d97272638100bf8d0ae13c5a3 /python/progress.cc
parent7e98c1633f22a652b7a69080d822c0af87331d04 (diff)
parent34fa87e70cd6967805ba6faebf146bc4dcd5c14c (diff)
downloadpython-apt-ee8376bb4355b58b7816ab5c184dba1af231d76b.tar.gz
Merge with mvo
Diffstat (limited to 'python/progress.cc')
-rw-r--r--python/progress.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/progress.cc b/python/progress.cc
index 793265db..99ad0a25 100644
--- a/python/progress.cc
+++ b/python/progress.cc
@@ -185,8 +185,10 @@ bool PyFetchProgress::Pulse(pkgAcquire * Owner)
bool res = true;
if(!PyArg_Parse(result, "b", &res))
{
- // mvo: this is harmless, we shouldn't print anything here
- //std::cerr << "result could not be parsed" << std::endl;
+ // most of the time the user who subclasses the pulse()
+ // method forgot to add a return {True,False} so we just
+ // assume he wants a True
+ return true;
}
// fetching can be canceld by returning false