aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-04 21:34:18 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-04 21:34:18 +0100
commitc90d4dec7920a8d70949d8e2e71e704d2800d2c1 (patch)
treeb27391f20de3e33d4bfe074e6a5f9592d4fb3465 /python
parent9a153e42f9703672b5a9de6d24d6a35697b05531 (diff)
downloadpaludis-c90d4dec7920a8d70949d8e2e71e704d2800d2c1.tar.gz
paludis-c90d4dec7920a8d70949d8e2e71e704d2800d2c1.tar.xz
PackageID::contents
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>)