aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake/dep_parser.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-05-13 14:23:33 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-05-13 14:23:33 +0000
commite9cb1d6a2e87901ceaee28c65b199e59f7f9d2f1 (patch)
tree38d0d41b09db961226fc006253a096012ab23b2e /paludis/repositories/fake/dep_parser.cc
parent52bfe9da687d079d44eca092c180f0159f1a95b8 (diff)
downloadpaludis-e9cb1d6a2e87901ceaee28c65b199e59f7f9d2f1.tar.gz
paludis-e9cb1d6a2e87901ceaee28c65b199e59f7f9d2f1.tar.xz
parse and ignore annotations
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);