summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@glatzor.de>2008-08-26 20:03:29 +0200
committerSebastian Heinlein <sebi@glatzor.de>2008-08-26 20:03:29 +0200
commit7d2a6c05dfd99a40aea8b34909e529f5b082ec9d (patch)
tree6d7adab4bf13d3af137481fc6954fcc0b828ae9d /python
parent423a25e57a4c07c2803ef39e2d0d7a2b73d5ab7c (diff)
parentee8376bb4355b58b7816ab5c184dba1af231d76b (diff)
downloadpython-apt-7d2a6c05dfd99a40aea8b34909e529f5b082ec9d.tar.gz
Merge with consolidate branch
Diffstat (limited to 'python')
-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