aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-06 18:10:58 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-06 18:10:58 +0000
commit9dfecca9df5def7fab895e2909f4e05cf2d47892 (patch)
tree1c61d11d3c275113cf5aef471c82bcac4c74d06d /paludis/user_dep_spec.hh
parentd6f5e30e1c5843a7644e79963950228cb04b4fb6 (diff)
downloadpaludis-9dfecca9df5def7fab895e2909f4e05cf2d47892.tar.gz
paludis-9dfecca9df5def7fab895e2909f4e05cf2d47892.tar.xz
Allow returning reasons for additional requirements not being met
Rather than returning a bool, return a pair<bool, string>, with the string being allowed to contain a detailed reason if the bool is false. Don't actually return useful reasons anywhere or use those reasons for anything yet.
Diffstat (limited to 'paludis/user_dep_spec.hh')
-rw-r--r--paludis/user_dep_spec.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/paludis/user_dep_spec.hh b/paludis/user_dep_spec.hh
index 4433a5f4b..5ff57fd9f 100644
--- a/paludis/user_dep_spec.hh
+++ b/paludis/user_dep_spec.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2005, 2006, 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010 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
@@ -77,7 +77,8 @@ namespace paludis
///\}
- virtual bool requirement_met(const Environment * const, const PackageID &) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual const std::pair<bool, std::string> requirement_met(
+ const Environment * const, const PackageID &) const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual const std::string as_human_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual const std::string as_raw_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
};