aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-01-05 14:51:14 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-01-05 14:51:14 +0000
commite38a5e5b3609ed748a401615be541e5201cd4ad9 (patch)
treeec542d607d5c4e36a64ac2acd94a8769d13e62c0
parent590c6a9c55f27d1cebc72462cc0797d62a004952 (diff)
downloadpaludis-e38a5e5b3609ed748a401615be541e5201cd4ad9.tar.gz
paludis-e38a5e5b3609ed748a401615be541e5201cd4ad9.tar.xz
Identify targets correctly
-rw-r--r--paludis/resolver/orderer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/paludis/resolver/orderer.cc b/paludis/resolver/orderer.cc
index 6e9c03f..06eede3 100644
--- a/paludis/resolver/orderer.cc
+++ b/paludis/resolver/orderer.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010, 2011 Ciaran McCreesh
+ * Copyright (c) 2010, 2011, 2014 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -36,6 +36,7 @@
#include <paludis/resolver/change_by_resolvent.hh>
#include <paludis/resolver/labels_classifier.hh>
#include <paludis/resolver/collect_depped_upon.hh>
+#include <paludis/resolver/reason_utils.hh>
#include <paludis/util/pimp-impl.hh>
#include <paludis/util/exception.hh>
@@ -861,7 +862,7 @@ namespace
for (auto c((*resolution)->constraints()->begin()), c_end((*resolution)->constraints()->end()) ;
c != c_end ; ++c)
- if (visitor_cast<const TargetReason>(*(*c)->reason()))
+ if (is_target((*c)->reason()))
return true;
return false;