aboutsummaryrefslogtreecommitdiff
path: root/python/dep_spec.cc
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-07-08 19:04:06 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-07-08 19:04:06 +0000
commitabad99b363c8d9d70bec5a41db6373f59b87838e (patch)
tree245d8b637231ce5970976cb15af602c1c63c17ff /python/dep_spec.cc
parentb5c28748235c4e02d42dfc0e30816cbd95de7a6a (diff)
downloadpaludis-abad99b363c8d9d70bec5a41db6373f59b87838e.tar.gz
paludis-abad99b363c8d9d70bec5a41db6373f59b87838e.tar.xz
(python) Add DepList and a few minor changes.
Diffstat (limited to 'python/dep_spec.cc')
-rw-r--r--python/dep_spec.cc23
1 files changed, 12 insertions, 11 deletions
diff --git a/python/dep_spec.cc b/python/dep_spec.cc
index 4ebfe2bf5..d8c3ab69d 100644
--- a/python/dep_spec.cc
+++ b/python/dep_spec.cc
@@ -947,12 +947,12 @@ void register_sp_package_dep_spec_to_python()
template <typename H_>
-struct RegisterSpecTreeFromPython
+struct RegisterSpecTreeSPTRFromPython
{
- RegisterSpecTreeFromPython()
+ RegisterSpecTreeSPTRFromPython()
{
bp::converter::registry::push_back(&convertible, &construct,
- boost::python::type_id<tr1::shared_ptr<typename H_::ConstItem> >());
+ boost::python::type_id<tr1::shared_ptr<const typename H_::ConstItem> >());
}
static void *
@@ -1023,9 +1023,9 @@ struct RegisterPackageDepSpecFromPython
}
};
-struct RegisterPackageDepSpecSPFromPython
+struct RegisterPackageDepSpecSPTRFromPython
{
- RegisterPackageDepSpecSPFromPython()
+ RegisterPackageDepSpecSPTRFromPython()
{
bp::converter::registry::push_back(&convertible, &construct,
boost::python::type_id<tr1::shared_ptr<const PackageDepSpec> >());
@@ -1094,11 +1094,12 @@ void PALUDIS_VISIBLE expose_dep_spec()
register_tree_to_python<LicenseSpecTree>();
register_tree_to_python<SetSpecTree>();
- RegisterSpecTreeFromPython<DependencySpecTree>();
- RegisterSpecTreeFromPython<ProvideSpecTree>();
- RegisterSpecTreeFromPython<RestrictSpecTree>();
- RegisterSpecTreeFromPython<URISpecTree>();
- RegisterSpecTreeFromPython<LicenseSpecTree>();
+ RegisterSpecTreeSPTRFromPython<DependencySpecTree>();
+ RegisterSpecTreeSPTRFromPython<ProvideSpecTree>();
+ RegisterSpecTreeSPTRFromPython<RestrictSpecTree>();
+ RegisterSpecTreeSPTRFromPython<URISpecTree>();
+ RegisterSpecTreeSPTRFromPython<LicenseSpecTree>();
+ RegisterSpecTreeSPTRFromPython<SetSpecTree>();
/**
* DepSpec
@@ -1215,7 +1216,7 @@ void PALUDIS_VISIBLE expose_dep_spec()
* PackageDepSpec
*/
RegisterPackageDepSpecFromPython();
- RegisterPackageDepSpecSPFromPython();
+ RegisterPackageDepSpecSPTRFromPython();
bp::implicitly_convertible<PackageDepSpec, PythonPackageDepSpec>();
register_sp_package_dep_spec_to_python();