From 13519e8a5b8bb9141ecff09f5273d5c2896a8082 Mon Sep 17 00:00:00 2001 From: Maru Newby Date: Fri, 9 Jan 2015 13:06:56 +0000 Subject: [PATCH] Fix get_packages when $DISTRO is not set Sourcing the tools/install-prereqs.sh script with TOP_DIR set results in GetDistro being called in get_packages and echoing the result. Since all output from get_packages is assumed to be package names, this results in the attempted installation of the non-existant 'Found' 'Distro' and '[distro name]' packages. This change removes the echo statement to avoid this problem. Change-Id: Idd05c31b9eec9e6209666fa16fa425cdf1f35aa2 --- functions-common | 1 - 1 file changed, 1 deletion(-) diff --git a/functions-common b/functions-common index 7a6c3a127c..3b4309a15d 100644 --- a/functions-common +++ b/functions-common @@ -1011,7 +1011,6 @@ function get_packages { fi if [[ -z "$DISTRO" ]]; then GetDistro - echo "Found Distro $DISTRO" fi for service in ${services//,/ }; do # Allow individual services to specify dependencies