From c7ccc73f1e88205489edd5c4df598074851b1df8 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 19 Dec 2009 16:31:19 +0100 Subject: [PATCH] Fix name overload in get_files The variable source was being overloaded by a local variable of the same name causing the loop to malfunction and not retrieve all sources. --- buildpkg.functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildpkg.functions b/buildpkg.functions index 5f6bd92..7d6f607 100644 --- a/buildpkg.functions +++ b/buildpkg.functions @@ -358,7 +358,7 @@ get_files() { local numsource=${#source[@]} local numpatch=${#patch[@]} - local source + local src local array local counter @@ -367,8 +367,8 @@ get_files() array=( ${source[@]} ${patch[@]} ) while [ $idx -lt ${counter} ] do - source=${array[$idx]} - [ -n "$(echo $source | grep '://')" ] && fetch_source $source + src=${array[$idx]} + [ -n "$(echo $src | grep '://')" ] && fetch_source $src let idx=idx+1 done }