From 3e295f4e81f867fbd8b6c9c306bc1ca124e41d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Fri, 13 Mar 2020 15:38:35 +0000 Subject: subr/pkgtool_init.subr:pkgtoolp_init_prereqs(): trim list of prerequisite command dependencies. --- subr/pkgtool_init.subr | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'subr') diff --git a/subr/pkgtool_init.subr b/subr/pkgtool_init.subr index c0e26ace..ce3c6808 100644 --- a/subr/pkgtool_init.subr +++ b/subr/pkgtool_init.subr @@ -164,11 +164,9 @@ pkgtoolp_init_package() { pkgtoolp_init_prereqs() { local _cmd="" _cmds_missing="" _rc=0; _status=""; for _cmd in \ - awk bunzip2 bzip2 cat chmod cmake cp date find flock \ - g++ gcc git grep gunzip gzip hostname install kill \ - ln lzip make mkdir mkfifo mktemp mv paste patch perl \ - pgrep pkill printf readlink rm sed sha256sum sort \ - tail tar test touch tr uniq wget xz zip; do + awk bzip2 cat chmod cp date find grep hostname mkdir \ + mktemp mv paste printf readlink rm sed sort tar test \ + touch tr uniq; do if ! which "${_cmd}" >/dev/null 2>&1; then _cmds_missing="${_cmds_missing:+${_cmds_missing} }${_cmd}"; fi; -- cgit v1.2.3