summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-10 09:25:39 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-10 09:25:39 +0200
commit48e0bd9332b1c1c914c45da1794846cd9eac967f (patch)
tree599adbed8ac9d0d8edca76deb8c9760ae63d5997 /bin/pkg
parent9f1058dc459bd556eb01f38be0f1ba15af1f7538 (diff)
pkg: check_prereqs: Shortened depend->require pseudo-alias
Diffstat (limited to 'bin/pkg')
-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' ]] {