aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-01 18:24:11 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-01 18:24:26 +0100
commitc94a500a0b3e98e2d75bdfe667fe85949a1f8c27 (patch)
treef4e65d7a98c16e3b18b2d9b6b6236ca43c35aa04
parent4659010323ce3a278a6c9c4bbd7181a6f21deef6 (diff)
downloadpaludis-c94a500a0b3e98e2d75bdfe667fe85949a1f8c27.tar.gz
paludis-c94a500a0b3e98e2d75bdfe667fe85949a1f8c27.tar.xz
Bad snake, no cookie
-rw-r--r--python/dep_spec.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/python/dep_spec.cc b/python/dep_spec.cc
index 9b6a9e7..76f9366 100644
--- a/python/dep_spec.cc
+++ b/python/dep_spec.cc
@@ -1023,6 +1023,19 @@ struct RegisterSpecTreeSharedPtrFromPython
}
};
+namespace
+{
+ PackageDepSpec wrapped_parse_user_package_dep_spec(
+ const std::string & s,
+ const Environment * const e,
+ const UserPackageDepSpecOptions & o,
+ const Filter & f = filter::All()
+ )
+ {
+ return parse_user_package_dep_spec(s, e, o, f);
+ }
+}
+
void expose_dep_spec()
{
/**
@@ -1165,7 +1178,7 @@ void expose_dep_spec()
* PackageDepSpec
*/
- bp::def("parse_user_package_dep_spec", &parse_user_package_dep_spec,
+ bp::def("parse_user_package_dep_spec", &wrapped_parse_user_package_dep_spec,
(bp::arg("str"), bp::arg("env"), bp::arg("options"), bp::arg("filter")=filter::All()),
"parse_user_package_dep_spec(str, Environment, options=UserPackageDepSpecOptions(), Filter)"
" -> PackageDepSpec\n"