aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_print_owners.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-16 00:16:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-16 00:16:26 +0000
commitba066f45df8b0ee431f8f836b6ad789428132828 (patch)
treee4738aa7fee81bed9db67d10d60fa34ea94ff41d /src/clients/cave/cmd_print_owners.cc
parentca35d755e3758ea2a6e96c8640182af2f809ae45 (diff)
downloadpaludis-ba066f45df8b0ee431f8f836b6ad789428132828.tar.gz
paludis-ba066f45df8b0ee431f8f836b6ad789428132828.tar.xz
Give contents entries metadata keys.
This lets us remove the horrible ExtraInfo hack from the unmerger. Whilst we're at it, stop tracking fifo / dev / misc and just have an 'other' contents type.
Diffstat (limited to 'src/clients/cave/cmd_print_owners.cc')
-rw-r--r--src/clients/cave/cmd_print_owners.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clients/cave/cmd_print_owners.cc b/src/clients/cave/cmd_print_owners.cc
index ad9e03110..9d0af4f1d 100644
--- a/src/clients/cave/cmd_print_owners.cc
+++ b/src/clients/cave/cmd_print_owners.cc
@@ -87,17 +87,17 @@ namespace
bool handle_full(const std::string & q, const std::tr1::shared_ptr<const ContentsEntry> & e)
{
- return q == e->name();
+ return q == stringify(e->location_key()->value());
}
bool handle_basename(const std::string & q, const std::tr1::shared_ptr<const ContentsEntry> & e)
{
- return q == FSEntry(e->name()).basename();
+ return q == e->location_key()->value().basename();
}
bool handle_partial(const std::string & q, const std::tr1::shared_ptr<const ContentsEntry> & e)
{
- return std::string::npos != e->name().find(q);
+ return std::string::npos != stringify(e->location_key()->value()).find(q);
}
}