aboutsummaryrefslogtreecommitdiff
path: root/python/package_dep_spec_constraint.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-29 11:03:54 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 08:32:58 +0100
commit5574c81a3c60266d023d18dfc115803da8b12e6b (patch)
tree659da456cb9813045fd32067a3db11d7c7d7ce82 /python/package_dep_spec_constraint.cc
parentb7f5d7dbfeff2e406ef24ca471657e1735a4db4f (diff)
downloadpaludis-5574c81a3c60266d023d18dfc115803da8b12e6b.tar.gz
paludis-5574c81a3c60266d023d18dfc115803da8b12e6b.tar.xz
category and package parts to requirements
Diffstat (limited to 'python/package_dep_spec_constraint.cc')
-rw-r--r--python/package_dep_spec_constraint.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/python/package_dep_spec_constraint.cc b/python/package_dep_spec_constraint.cc
index aa212eb62..686bdf304 100644
--- a/python/package_dep_spec_constraint.cc
+++ b/python/package_dep_spec_constraint.cc
@@ -73,5 +73,35 @@ void expose_package_dep_spec_constraint()
"[RO] The cat/pkg in question"
)
;
+
+ /**
+ * PackageNamePartConstraint
+ */
+ class_package_dep_spec_constraint<PackageNamePartConstraint>
+ (
+ "PackageNamePartConstraint",
+ "A /pkg constraint for a PackageDepSpec.",
+ bp::no_init
+ )
+
+ .add_property("name_part", &PackageNamePartConstraint::name_part,
+ "[RO] The /pkg in question"
+ )
+ ;
+
+ /**
+ * CategoryNamePartConstraint
+ */
+ class_package_dep_spec_constraint<CategoryNamePartConstraint>
+ (
+ "CategoryNamePartConstraint",
+ "A cat/ constraint for a PackageDepSpec.",
+ bp::no_init
+ )
+
+ .add_property("name_part", &CategoryNamePartConstraint::name_part,
+ "[RO] The cat/ in question"
+ )
+ ;
}