aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-14 20:04:19 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-15 10:42:03 +0100
commit09083171a3c5ea3d3d019e4724c8a02488f3eebb (patch)
treebcbe66a2920f0ce8f4f19606b60b08d79856b6e5
parent7ce6f2a635664f48179ba58b18a24f041d467bc3 (diff)
downloadpaludis-09083171a3c5ea3d3d019e4724c8a02488f3eebb.tar.gz
paludis-09083171a3c5ea3d3d019e4724c8a02488f3eebb.tar.xz
Update examples for parse_user_package_dep_spec changes (continued)
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec.cc b/doc/api/cplusplus/examples/example_dep_spec.cc
index 83a4b12..b0adb8d 100644
--- a/doc/api/cplusplus/examples/example_dep_spec.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec.cc
@@ -51,10 +51,12 @@ int main(int argc, char * argv[])
/* Create a PackageDepSpec from the parameter. For user-inputted
* data, parse_user_package_dep_spec() should be used. If wildcards
* are to be permitted, the updso_allow_wildcards option should be
- * included. If data about the spec is known at compile time,
+ * included. If you might be getting a set, also include
+ * updso_throw_if_set and catch the GotASetNotAPackageDepSpec
+ * exception. If data about the spec is known at compile time,
* make_package_dep_spec() should be used instead. */
PackageDepSpec spec(parse_user_package_dep_spec(
- *q, UserPackageDepSpecOptions() + updso_allow_wildcards));
+ *q, env.get(), UserPackageDepSpecOptions() + updso_allow_wildcards));
/* Display information about the PackageDepSpec. */
cout << "Information about '" << spec << "':" << endl;