aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/package_id.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/package_id.cc b/python/package_id.cc
index 88ac8f93b..9f84efd4c 100644
--- a/python/package_id.cc
+++ b/python/package_id.cc
@@ -155,7 +155,6 @@ void expose_package_id()
"installed (if known, which it may be for some binary packages)."
)
-
.def("installed_time_key", &PackageID::installed_time_key,
"The installed_time_key, if not None, contains the time a package\n"
"was installed. It affects dependency resolution if DepList is\n"
@@ -187,6 +186,13 @@ void expose_package_id()
"PackageDepSpec by using parse_user_package_dep_spec."
)
+ .def("contents", &PackageID::contents,
+ "The contents, if not None, contains the contents of a\n"
+ "package. For installed packages, this means the files installed;\n"
+ "for installable packages, this means the files that will be\n"
+ "installed (if known, which it may be for some binary packages)."
+ )
+
.def("__eq__", &py_eq<PackageID>)
.def("__ne__", &py_ne<PackageID>)