aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_contents.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_contents.cc')
-rw-r--r--src/clients/cave/cmd_contents.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/clients/cave/cmd_contents.cc b/src/clients/cave/cmd_contents.cc
index 23f00adc8..2122dd2dc 100644
--- a/src/clients/cave/cmd_contents.cc
+++ b/src/clients/cave/cmd_contents.cc
@@ -82,7 +82,11 @@ namespace
{
std::string visit(const ContentsFileEntry & e) const
{
- return fuc(fs_file(), fv<'s'>(stringify(e.location_key()->parse_value())));
+ return fuc(fs_file(),
+ fv<'p'>(e.part_key()
+ ? stringify(e.part_key()->parse_value())
+ : ""),
+ fv<'s'>(stringify(e.location_key()->parse_value())));
}
std::string visit(const ContentsDirEntry & e) const
@@ -93,8 +97,11 @@ namespace
std::string visit(const ContentsSymEntry & e) const
{
return fuc(fs_sym(),
- fv<'s'>(stringify(e.location_key()->parse_value())),
- fv<'t'>(stringify(e.target_key()->parse_value())));
+ fv<'p'>(e.part_key()
+ ? stringify(e.part_key()->parse_value())
+ : ""),
+ fv<'s'>(stringify(e.location_key()->parse_value())),
+ fv<'t'>(stringify(e.target_key()->parse_value())));
}
std::string visit(const ContentsOtherEntry & e) const