summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-05-10 12:18:08 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-05-10 12:18:08 +0200
commitc6660a4ba95e2c8112ee5190a71bdfa6640eb35d (patch)
treedc90b25c81db72bc1662805366ad4ba74a6ba2da /apt-pkg/edsp.cc
parent66b6fe055a0604d2a8372e61032e492f88f49f86 (diff)
fix SubProgress to accept a Percent parameter to update the Current
with the text as otherwise the update will be ignored
Diffstat (limited to 'apt-pkg/edsp.cc')
-rw-r--r--apt-pkg/edsp.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc
index 489dd2933..0e229e1c0 100644
--- a/apt-pkg/edsp.cc
+++ b/apt-pkg/edsp.cc
@@ -267,12 +267,10 @@ bool EDSP::ReadResponse(int const input, pkgDepCache &Cache, OpProgress *Progres
type = "Remove";
else if (section.Exists("Progress") == true) {
if (Progress != NULL) {
- string const msg = section.FindS("Message");
+ string msg = section.FindS("Message");
if (msg.empty() == true)
- Progress->SubProgress(100, _("Prepare for receiving solution"));
- else
- Progress->SubProgress(100, msg);
- Progress->Progress(section.FindI("Percentage", 0));
+ msg = _("Prepare for receiving solution");
+ Progress->SubProgress(100, msg, section.FindI("Percentage", 0));
}
continue;
} else if (section.Exists("Error") == true) {