aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_show.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_show.cc')
-rw-r--r--src/clients/cave/cmd_show.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_show.cc b/src/clients/cave/cmd_show.cc
index 5d22f0b..38ad665 100644
--- a/src/clients/cave/cmd_show.cc
+++ b/src/clients/cave/cmd_show.cc
@@ -882,7 +882,10 @@ namespace
cout << format_general_s(f::show_package_best(), "");
}
- cout << format_general_s(f::show_package_slot(), slot_name);
+ if (slot_name.empty())
+ cout << format_general_s(f::show_package_no_slot(), slot_name);
+ else
+ cout << format_general_s(f::show_package_slot(), slot_name);
cout << endl;
}