From c2c1c8b0499cb3938bb148e6c1d0537d5ee8d188 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 12 Sep 2009 12:02:52 +0200 Subject: Removed legacy support for 'file_in_path' and 'require' in prereqs scripts --- bin/ct | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/ct b/bin/ct index 0bf6cb4..4071b73 100755 --- a/bin/ct +++ b/bin/ct @@ -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 { -- cgit v1.2.3