summaryrefslogtreecommitdiff
path: root/python/progress.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-08-05 09:23:13 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-08-05 09:23:13 +0000
commitde457bf476143b1f617378c7215503b777a743cc (patch)
tree71fabade43f9add41f6f1423fe39418b06c0d5bf /python/progress.cc
parent698f8ba826e01386be5de57bc95b44a5f22454dd (diff)
downloadpython-apt-de457bf476143b1f617378c7215503b777a743cc.tar.gz
* improved the examples, added README too
Diffstat (limited to 'python/progress.cc')
-rw-r--r--python/progress.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/progress.cc b/python/progress.cc
index 33b4ed97..f79090f7 100644
--- a/python/progress.cc
+++ b/python/progress.cc
@@ -165,8 +165,11 @@ bool PyFetchProgress::Pulse(pkgAcquire * Owner)
RunSimpleCallback("pulse", arglist, &result);
bool res = true;
- if(!PyArg_Parse(result, "b", &res))
- std::cerr << "result could not be parsed" << std::endl;
+ 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;
+ }
// fetching can be canceld by returning false
return res;