diff options
| author | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-25 00:08:23 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-25 00:08:23 +0200 |
| commit | ee8376bb4355b58b7816ab5c184dba1af231d76b (patch) | |
| tree | b53998fc74303a5d97272638100bf8d0ae13c5a3 /python | |
| parent | 7e98c1633f22a652b7a69080d822c0af87331d04 (diff) | |
| parent | 34fa87e70cd6967805ba6faebf146bc4dcd5c14c (diff) | |
| download | python-apt-ee8376bb4355b58b7816ab5c184dba1af231d76b.tar.gz | |
Merge with mvo
Diffstat (limited to 'python')
| -rw-r--r-- | python/progress.cc | 6 |
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 |
