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/deb/dpkgpm.cc | |
parent | 34d6563ef47b455b69a7bc9ad0838902bb911dea (diff) |
re-add missing APT::String::Strip
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index b5f858022..5f1849b53 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -668,6 +668,10 @@ void pkgDPkgPM::ProcessDpkgStatusLine(char *line) // check if the package moved to the next dpkg state if(next_action && (action == next_action)) { + // we moved from one dpkg state to a new one, report that + PackageOpsDone[pkg]++; + PackagesDone++; + // only read the translation if there is actually a next // action const char *translation = _(states[PackageOpsDone[pkg]].str); @@ -675,9 +679,6 @@ void pkgDPkgPM::ProcessDpkgStatusLine(char *line) strprintf(msg, translation, i18n_pkgname.c_str()); d->progress->StatusChanged(pkgname, PackagesDone, PackagesTotal, msg); - // we moved from one dpkg state to a new one, report that - PackageOpsDone[pkg]++; - PackagesDone++; } if (Debug == true) std::clog << "(parsed from dpkg) pkg: " << short_pkgname |