summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 2c43c5c..f7a6d1a 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -484,16 +484,13 @@ function check_prereqs {
function offer_install {
install+=$1
}
- function require {
+ function require depend {
if [[ $1 == 'package' ]] {
is_installed $2 || offer_install $2
} else {
$* || warn+="Requirement failed: $*\n"
}
}
- function depend {
- require $*
- }
function suggest {
if [[ $1 == 'package' ]] {