aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Elias Pipping <pipping@exherbo.org> 2011-08-17 18:43:57 +0200
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-08-18 09:12:23 +0100
commit41fd2129e9bd746ab2eb098e26f6699c662ac882 (patch)
tree1bdf3a2751816b4fa882965d0c5fce960164a04d
parent0792ceb03470340d97dd80efa6e2c7fd715f0af5 (diff)
downloadpaludis-41fd2129e9bd746ab2eb098e26f6699c662ac882.tar.gz
paludis-41fd2129e9bd746ab2eb098e26f6699c662ac882.tar.xz
Fix this: Resolving: , n metadata (..)
-rw-r--r--src/clients/cave/cmd_generate_metadata.cc3
-rw-r--r--src/clients/cave/cmd_manage_search_index.cc3
-rw-r--r--src/clients/cave/cmd_search.cc3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/clients/cave/cmd_generate_metadata.cc b/src/clients/cave/cmd_generate_metadata.cc
index 0081032..f5fdae4 100644
--- a/src/clients/cave/cmd_generate_metadata.cc
+++ b/src/clients/cave/cmd_generate_metadata.cc
@@ -140,7 +140,7 @@ namespace
if (! output)
return;
- std::string s(stage + ": ");
+ std::string s;
s.append(stringify(steps));
if (-1 != total)
s.append("/" + stringify(total));
@@ -178,6 +178,7 @@ namespace
s.append(stringify(t) + " metadata (" + ss + ") ");
}
+ s = stage + ": " + s;
std::cout << std::string(width, '\010') << s;
if (width > s.length())
diff --git a/src/clients/cave/cmd_manage_search_index.cc b/src/clients/cave/cmd_manage_search_index.cc
index adb0d4e..34e2229 100644
--- a/src/clients/cave/cmd_manage_search_index.cc
+++ b/src/clients/cave/cmd_manage_search_index.cc
@@ -104,7 +104,7 @@ namespace
if (! output)
return;
- std::string s(stage + ": ");
+ std::string s;
s.append(stringify(steps));
if (-1 != total)
s.append("/" + stringify(total));
@@ -142,6 +142,7 @@ namespace
s.append(stringify(t) + " metadata (" + ss + ") ");
}
+ s = stage + ": " + s;
std::cout << std::string(width, '\010') << s;
if (width > s.length())
diff --git a/src/clients/cave/cmd_search.cc b/src/clients/cave/cmd_search.cc
index c3f8ed3..c4e5cf1 100644
--- a/src/clients/cave/cmd_search.cc
+++ b/src/clients/cave/cmd_search.cc
@@ -162,7 +162,7 @@ namespace
if (! output)
return;
- std::string s(stage + ": ");
+ std::string s;
s.append(stringify(steps));
if (! metadata.empty())
@@ -198,6 +198,7 @@ namespace
s.append(stringify(t) + " metadata (" + ss + ") ");
}
+ s = stage + ": " + s;
std::cout << std::string(width, '\010') << s;
if (width > s.length())