summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-06 20:22:09 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-06 20:22:09 +0200
commit68f701089b742dc499ffb9037ba46fdadee36b79 (patch)
tree643b0b05d27fbb75ca5fe05aabe52547ba726cd3
parent964b65061b349756aaca1b9d3e64ae7fc1fb1526 (diff)
pkg: check_prereqs: Deprecated require (replaced by depend)
-rwxr-xr-xbin/pkg5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index d3a5bb4..82e05d1 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -480,7 +480,10 @@ function check_prereqs {
function offer_install {
install+=$1
}
- function require depend {
+ function depend require {
+ if [[ $0 == require ]] {
+ warn "'require' is depracated, use 'depend' instead\n"
+ }
if [[ $1 == 'package' ]] {
is_installed $2 || offer_install $2
} else {