From 48e0bd9332b1c1c914c45da1794846cd9eac967f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 10 May 2009 09:25:39 +0200 Subject: pkg: check_prereqs: Shortened depend->require pseudo-alias --- bin/pkg | 5 +---- 1 file changed, 1 insertion(+), 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' ]] { -- cgit v1.2.3