aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-11-28 19:59:13 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-11-28 20:19:05 -0800
commit38c26e95c529fee4c3acade2719a3f3871082cc9 (patch)
tree7535f1d79662d85b9dc1b82d7eb58b909c4a2382
parent87acce58e701b7b52ce5bb57d4a3f4a844a01569 (diff)
downloadpaludis-38c26e95c529fee4c3acade2719a3f3871082cc9.tar.gz
paludis-38c26e95c529fee4c3acade2719a3f3871082cc9.tar.xz
cave: correct importance handling
We would previously negate the left hand side of the comparison rather than the comparison. Identified via clang 3.9.
-rw-r--r--src/clients/cave/cmd_print_commands.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_print_commands.cc b/src/clients/cave/cmd_print_commands.cc
index 0b2e00f7d..bc312938f 100644
--- a/src/clients/cave/cmd_print_commands.cc
+++ b/src/clients/cave/cmd_print_commands.cc
@@ -90,7 +90,7 @@ PrintCommandsCommand::run(
{
std::shared_ptr<Command> instance(CommandFactory::get_instance()->create(*cmd));
- if (! cmdline.a_all.specified() && ! instance->importance() == ci_core)
+ if (! cmdline.a_all.specified() && instance->importance() != ci_core)
continue;
if (instance->importance() == ci_ignore)
continue;