aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake/dep_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/fake/dep_parser.cc')
-rw-r--r--paludis/repositories/fake/dep_parser.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/paludis/repositories/fake/dep_parser.cc b/paludis/repositories/fake/dep_parser.cc
index 68c673bd4..1bbff762c 100644
--- a/paludis/repositories/fake/dep_parser.cc
+++ b/paludis/repositories/fake/dep_parser.cc
@@ -178,6 +178,10 @@ namespace
void do_nothing()
{
}
+
+ void discard_annotations(const std::tr1::shared_ptr<const Map<std::string, std::string> > &)
+ {
+ }
}
std::tr1::shared_ptr<DependencySpecTree::ConstItem>
@@ -206,6 +210,7 @@ paludis::fakerepository::parse_depend(const std::string & s,
(k::on_error(), std::tr1::bind(&error_handler, s, _1))
(k::on_should_be_empty(), std::tr1::bind(&should_be_empty_handler<DependencySpecTree>, std::tr1::ref(stack), s))
(k::on_use_under_any(), &do_nothing)
+ (k::on_annotations(), &discard_annotations)
);
parse_elike_dependencies(s, callbacks);
@@ -239,6 +244,7 @@ paludis::fakerepository::parse_provide(const std::string & s,
(k::on_error(), std::tr1::bind(&error_handler, s, _1))
(k::on_should_be_empty(), std::tr1::bind(&should_be_empty_handler<ProvideSpecTree>, std::tr1::ref(stack), s))
(k::on_use_under_any(), &do_nothing)
+ (k::on_annotations(), &discard_annotations)
);
parse_elike_dependencies(s, callbacks);
@@ -272,6 +278,7 @@ paludis::fakerepository::parse_fetchable_uri(const std::string & s,
(k::on_error(), std::tr1::bind(&error_handler, s, _1))
(k::on_should_be_empty(), std::tr1::bind(&should_be_empty_handler<FetchableURISpecTree>, std::tr1::ref(stack), s))
(k::on_use_under_any(), &do_nothing)
+ (k::on_annotations(), &discard_annotations)
);
parse_elike_dependencies(s, callbacks);
@@ -305,6 +312,7 @@ paludis::fakerepository::parse_simple_uri(const std::string & s,
(k::on_error(), std::tr1::bind(&error_handler, s, _1))
(k::on_should_be_empty(), std::tr1::bind(&should_be_empty_handler<SimpleURISpecTree>, std::tr1::ref(stack), s))
(k::on_use_under_any(), &do_nothing)
+ (k::on_annotations(), &discard_annotations)
);
parse_elike_dependencies(s, callbacks);
@@ -338,6 +346,7 @@ paludis::fakerepository::parse_license(const std::string & s,
(k::on_error(), std::tr1::bind(&error_handler, s, _1))
(k::on_should_be_empty(), std::tr1::bind(&should_be_empty_handler<LicenseSpecTree>, std::tr1::ref(stack), s))
(k::on_use_under_any(), &do_nothing)
+ (k::on_annotations(), &discard_annotations)
);
parse_elike_dependencies(s, callbacks);