]> git.saurik.com Git - apt.git/commit - apt-pkg/upgrade.cc
fix progress output for (dist-)upgrade calculation
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 17 Aug 2014 10:30:21 +0000 (12:30 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 26 Sep 2014 22:10:05 +0000 (00:10 +0200)
commit2a884c612b10b27f4be2cc6dd689bfe448d9361a
tree2b5b31e255115ac3b9221a39e852723d6d48438d
parentb13ce62c7e7db6a0e80a0f4729ee00105466c3ac
fix progress output for (dist-)upgrade calculation

Previously, we had a start and a done of the calculation printed by
higher-level code, but this got intermixed by progress reporting from an
external solver or the output of autoremove codeā€¦

The higherlevel code is now only responsible for instantiating a
progress object of its choosing (if it wants progress after all) and the
rest will be handled by the upgrade code. Either it is used to show the
progress of the external solver or the internal solver will give some
hints about its overall progress. The later isn't really a proper
progress as it will jump forward after each substep, but that is at
least a bit better than before without any progress indication.

Fixes also the 'strange' non-display of this progress line in -q=1, while
all others are shown, which is reflected by all testcase changes.
73 files changed:
apt-pkg/algorithms.cc
apt-pkg/algorithms.h
apt-pkg/upgrade.cc
apt-pkg/upgrade.h
apt-private/private-install.cc
apt-private/private-upgrade.cc
po/ar.po
po/ast.po
po/bg.po
po/bs.po
po/ca.po
po/cs.po
po/cy.po
po/da.po
po/de.po
po/dz.po
po/el.po
po/es.po
po/eu.po
po/fi.po
po/fr.po
po/gl.po
po/he.po
po/hu.po
po/it.po
po/ja.po
po/km.po
po/ko.po
po/ku.po
po/lt.po
po/mr.po
po/nb.po
po/ne.po
po/nl.po
po/nn.po
po/pl.po
po/pt.po
po/pt_BR.po
po/ro.po
po/ru.po
po/sk.po
po/sl.po
po/sv.po
po/th.po
po/tl.po
po/tr.po
po/uk.po
po/vi.po
po/zh_CN.po
po/zh_TW.po
test/integration/test-allow-scores-for-all-dependency-types
test/integration/test-apt-get-upgrade
test/integration/test-bug-507998-dist-upgrade-recommends
test/integration/test-bug-591882-conkeror
test/integration/test-bug-605394-versioned-or-groups
test/integration/test-bug-612099-multiarch-conflicts
test/integration/test-bug-64141-install-dependencies-for-on-hold
test/integration/test-bug-657695-resolver-breaks-on-virtuals
test/integration/test-bug-675449-essential-are-protected
test/integration/test-bug-680041-apt-mark-holds-correctly
test/integration/test-bug-686346-package-missing-architecture
test/integration/test-bug-735967-lib32-to-i386-unavailable
test/integration/test-bug-740843-versioned-up-down-breaks
test/integration/test-bug-758153-versioned-provides-support
test/integration/test-conflicts-loop
test/integration/test-pin-non-existent-package
test/integration/test-prevent-markinstall-multiarch-same-versionscrew
test/integration/test-provides-gone-with-upgrade
test/integration/test-resolve-by-keep-new-recommends
test/integration/test-ubuntu-bug-1304403-obsolete-priority-standard
test/integration/test-ubuntu-bug-985852-pre-depends-or-group-ordering
test/integration/test-very-tight-loop-configure-with-unpacking-new-packages
test/integration/test-xorg-break-providers