diff options
author | 2010-08-18 10:15:41 +0100 | |
---|---|---|
committer | 2010-08-19 20:08:49 +0100 | |
commit | 86f4998ea2441fcd6870f19fb312659dfb81e92e (patch) | |
tree | 60035bf89c6f08ca41f8f014738097f82966aaf7 | |
parent | 2fc6bfb4f4647a3c513b199c2ee44026665e4f37 (diff) | |
download | paludis-86f4998ea2441fcd6870f19fb312659dfb81e92e.tar.gz paludis-86f4998ea2441fcd6870f19fb312659dfb81e92e.tar.xz |
Always show -k-specified keys
-rw-r--r-- | src/clients/cave/cmd_show.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_show.cc b/src/clients/cave/cmd_show.cc index abac63760..bc7ce541f 100644 --- a/src/clients/cave/cmd_show.cc +++ b/src/clients/cave/cmd_show.cc @@ -964,7 +964,8 @@ namespace for (std::set<std::shared_ptr<const MetadataKey>, MetadataKeyComparator>::const_iterator k(keys.begin()), k_end(keys.end()) ; k != k_end ; ++k) { - InfoDisplayer i(cmdline, 1, ((*k)->type() == mkt_significant), maybe_old_id, old_id_is_installed); + bool explicit_key(cmdline.a_key.end_args() != std::find(cmdline.a_key.begin_args(), cmdline.a_key.end_args(), (*k)->raw_name())); + InfoDisplayer i(cmdline, 1, ((*k)->type() == mkt_significant) || explicit_key, maybe_old_id, old_id_is_installed); if (want_key(cmdline, *k)) accept_visitor(i)(**k); } |