summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-30 14:44:21 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-30 14:44:21 +0100
commitf769ffd2656ae3920d417c458098907e8d1060c9 (patch)
tree3c7ed0f1bec63cc2519b826e1236eb654ac8b6c8 /man
parent290a99cef54edfd8b54349cfe658450f14d69134 (diff)
Updated in pkg(7): check_prereqs
Diffstat (limited to 'man')
-rw-r--r--man/7/pkg16
1 files changed, 13 insertions, 3 deletions
diff --git a/man/7/pkg b/man/7/pkg
index 30daf3d..389f4d1 100644
--- a/man/7/pkg
+++ b/man/7/pkg
@@ -132,10 +132,20 @@ Returns true if I<commandname> was found in the users PATH, otherwise false
* B<offer_install> I<package>
+Mark I<package> for installation
+
+* B<require> I<expression> | B<require package> I<package>
+
+Execute expression and automatically warn if it fails.
+In case of B<require package>, automatically mark B<package> for installation
+if it isn't installed
+
+Additionally, the string parameter 'warn' can be used to soak up warnings.
+It's also used by B<require>
+
After completing the execution of B<prereqs>,
-pkg will offer to install all the packages added by this command.
-Use in conjunction with B<is_installed>, like
- is_installed brain || offer_install brain
+pkg will offer to install all the packages added by B<offer_install> or
+B<require package>, and will print out the text stored in $warn
=item B<populate_collected> I<package>