aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-19 18:19:02 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-19 18:19:02 +0000
commit6c809f3c793c6c901c895ebc4007dd1cb82b2ad3 (patch)
tree19b02541002b94ac65f89cda6e667d9e7d0d3ed0
parenta4ca4d4cdd5111d9bd652599d6f9dbe959e199a4 (diff)
downloadpaludis-6c809f3c793c6c901c895ebc4007dd1cb82b2ad3.tar.gz
paludis-6c809f3c793c6c901c895ebc4007dd1cb82b2ad3.tar.xz
Display messages for the repository directory itself in a slightly more sensible way.
-rw-r--r--src/clients/qualudis/qualudis.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index 039717e..5a05953 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -188,7 +188,8 @@ namespace
{
if (previous_entry != msg.entry)
{
- std::cout << colour(cl_package_name, strip_leading_string(stringify(msg.entry.strip_leading(FSEntry::cwd())), "/"))
+ std::string filename(strip_leading_string(stringify(msg.entry.strip_leading(FSEntry::cwd())), "/"));
+ std::cout << colour(cl_package_name, filename.length() > 0 ? filename : ".")
<< ":" << std::endl;
previous_entry = msg.entry;
previous_name = "NONE";