summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp.cc
diff options
context:
space:
mode:
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) {