diff options
author | Michael Vogt <mvo@debian.org> | 2013-10-18 18:26:56 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-10-18 18:26:56 +0200 |
commit | 65dbd5a1a32f63dae81c8b5814cd246f1154c38d (patch) | |
tree | 1fb99e95a46aa784f15ccd9f4c402b36134dfae0 /apt-pkg/iprogress.cc | |
parent | 34d6563ef47b455b69a7bc9ad0838902bb911dea (diff) |
re-add missing APT::String::Strip
Diffstat (limited to 'apt-pkg/iprogress.cc')
-rw-r--r-- | apt-pkg/iprogress.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apt-pkg/iprogress.cc b/apt-pkg/iprogress.cc index 318d626d4..daa7695e2 100644 --- a/apt-pkg/iprogress.cc +++ b/apt-pkg/iprogress.cc @@ -29,6 +29,7 @@ bool PackageManager::StatusChanged(std::string PackageName, } PackageManagerProgressFd::PackageManagerProgressFd(int progress_fd) + : StepsDone(0), StepsTotal(1) { OutStatusFd = progress_fd; } @@ -106,6 +107,13 @@ bool PackageManagerProgressFd::StatusChanged(std::string PackageName, << ":" << pkg_action << std::endl; WriteToStatusFd(status.str()); + + if(_config->FindB("Debug::APT::Progress::PackageManagerFd", false) == true) + std::cerr << "progress: " << PackageName << " " << xStepsDone + << " " << xTotalSteps << " " << pkg_action + << std::endl; + + return true; } |