diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-10 09:25:39 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-10 09:25:39 +0200 |
commit | 48e0bd9332b1c1c914c45da1794846cd9eac967f (patch) | |
tree | 599adbed8ac9d0d8edca76deb8c9760ae63d5997 /bin | |
parent | 9f1058dc459bd556eb01f38be0f1ba15af1f7538 (diff) |
pkg: check_prereqs: Shortened depend->require pseudo-alias
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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' ]] { |