summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-05-02 12:23:13 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-05-02 12:23:13 +0200
commit288a76d2dcb19aaf0aca6fc9d4898701e5379f5c (patch)
tree2da32f75a7fe318a39fe87a5feee7696a75accfe /apt-pkg/edsp.cc
parentc80a49f556ae565e280637b4617d6492a1d5a3b8 (diff)
reduce the buffer size so we get a sort of realtime progress report
and print the time of output at the front of the progress report so we can see the delay
Diffstat (limited to 'apt-pkg/edsp.cc')
-rw-r--r--apt-pkg/edsp.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc
index 9dbbbaf26..170e2a4c6 100644
--- a/apt-pkg/edsp.cc
+++ b/apt-pkg/edsp.cc
@@ -233,7 +233,7 @@ bool EDSP::ReadResponse(int const input, pkgDepCache &Cache) {
FileFd in;
in.OpenDescriptor(input, FileFd::ReadOnly);
- pkgTagFile response(&in);
+ pkgTagFile response(&in, 100);
pkgTagSection section;
while (response.Step(section) == true) {
@@ -243,6 +243,7 @@ bool EDSP::ReadResponse(int const input, pkgDepCache &Cache) {
else if (section.Exists("Remove") == true)
type = "Remove";
else if (section.Exists("Progress") == true) {
+ std::clog << TimeRFC1123(time(NULL)) << " ";
ioprintf(std::clog, "[ %3d%% ] ", section.FindI("Percentage", 0));
std::clog << section.FindS("Progress") << " - ";
string const msg = section.FindS("Message");