aboutsummaryrefslogtreecommitdiff
path: root/paludis/qa/parse_deps_check.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/qa/parse_deps_check.cc')
-rw-r--r--paludis/qa/parse_deps_check.cc16
1 files changed, 11 insertions, 5 deletions
diff --git a/paludis/qa/parse_deps_check.cc b/paludis/qa/parse_deps_check.cc
index 31c91f034..ab14c676b 100644
--- a/paludis/qa/parse_deps_check.cc
+++ b/paludis/qa/parse_deps_check.cc
@@ -47,7 +47,9 @@ ParseDepsCheck::operator() (const EbuildCheckData & e) const
try
{
std::string depend(metadata->deps_interface->build_depend_string);
- PortageDepParser::parse(depend);
+ PortageDepParser::parse(depend, PortageDepParser::Policy::text_is_package_dep_spec(true,
+ metadata->eapi_as_package_dep_spec_parse_mode() == pds_pm_eapi_0 ?
+ pds_pm_eapi_0_strict : metadata->eapi_as_package_dep_spec_parse_mode()));
}
catch (const Exception & err)
{
@@ -58,8 +60,10 @@ ParseDepsCheck::operator() (const EbuildCheckData & e) const
try
{
std::string rdepend(metadata->deps_interface->run_depend_string);
- PortageDepParser::parse(rdepend);
- }
+ PortageDepParser::parse(rdepend, PortageDepParser::Policy::text_is_package_dep_spec(true,
+ metadata->eapi_as_package_dep_spec_parse_mode() == pds_pm_eapi_0 ?
+ pds_pm_eapi_0_strict : metadata->eapi_as_package_dep_spec_parse_mode()));
+}
catch (const Exception & err)
{
result << Message(qal_fatal, "Unparsable RDEPEND: '" +
@@ -69,8 +73,10 @@ ParseDepsCheck::operator() (const EbuildCheckData & e) const
try
{
std::string pdepend(metadata->deps_interface->post_depend_string);
- PortageDepParser::parse(pdepend);
- }
+ PortageDepParser::parse(pdepend, PortageDepParser::Policy::text_is_package_dep_spec(true,
+ metadata->eapi_as_package_dep_spec_parse_mode() == pds_pm_eapi_0 ?
+ pds_pm_eapi_0_strict : metadata->eapi_as_package_dep_spec_parse_mode()));
+}
catch (const Exception & err)
{
result << Message(qal_fatal, "Unparsable PDEPEND: '" +