aboutsummaryrefslogtreecommitdiff
path: root/python/package_id.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/package_id.cc')
-rw-r--r--python/package_id.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/package_id.cc b/python/package_id.cc
index 384f9242b..88ac8f93b 100644
--- a/python/package_id.cc
+++ b/python/package_id.cc
@@ -26,6 +26,7 @@
#include <paludis/name.hh>
#include <paludis/version_spec.hh>
#include <paludis/action.hh>
+#include <paludis/dep_spec.hh>
#include <paludis/util/wrapped_forward_iterator.hh>
using namespace paludis;
@@ -180,6 +181,12 @@ void expose_package_id()
"The choices_key, if not None, indicates the package's choices."
)
+ .def("uniquely_identifying_spec", &PackageID::uniquely_identifying_spec,
+ "A PackageDepSpec that uniquely identifies us.\n\n"
+ "When stringified, can be turned back into an equivalent unique "
+ "PackageDepSpec by using parse_user_package_dep_spec."
+ )
+
.def("__eq__", &py_eq<PackageID>)
.def("__ne__", &py_ne<PackageID>)