diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-12 12:02:52 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-12 12:02:52 +0200 |
commit | c2c1c8b0499cb3938bb148e6c1d0537d5ee8d188 (patch) | |
tree | b3a11ac12d85b412c5ccc0d1f68395fd6a80e3f1 | |
parent | e45152d8c98a2fcb80c5b69abe97c440291bd789 (diff) |
Removed legacy support for 'file_in_path' and 'require' in prereqs scripts
-rwxr-xr-x | bin/ct | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -464,19 +464,13 @@ function check_prereqs { function perlmodule { perl -M$1 < /dev/null 2> /dev/null } - function executable file_in_path { - if [[ $0 == file_in_path ]] { - warn "'file_in_path' is deprecated, use 'executable' instead\n" - } + function executable { which $1 > /dev/null } function offer_install { install+=$1 } - function depend require { - if [[ $0 == require ]] { - warn "'require' is depracated, use 'depend' instead\n" - } + function depend { if [[ $1 == 'package' ]] { is_installed $2 || offer_install $2 } else { |