From 54287d55c26815034647151de2252c2bf2268289 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 12 Mar 2011 15:25:04 -0800 Subject: [PATCH 1/1] Parse URLs from Packages separately from extract. --- sysroot.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sysroot.sh b/sysroot.sh index 26ecbadf..c32440a4 100755 --- a/sysroot.sh +++ b/sysroot.sh @@ -60,6 +60,8 @@ function extract() { rm -f data.tar } +declare -A urls + wget -qO- "${repository}dists/${distribution}/${component}/binary-${architecture}/Packages.bz2" | bzcat | { regex='^([^ \t]*): *(.*)' declare -A fields @@ -69,7 +71,7 @@ wget -qO- "${repository}dists/${distribution}/${component}/binary-${architecture package=${fields[package]} if [[ ${package} == *(apr|apr-lib|apt7|apt7-lib|coreutils|mobilesubstrate|pcre) ]]; then filename=${fields[filename]} - extract "${package}" "${repository}${filename}" + urls[${package}]=${repository}${filename} fi unset fields @@ -82,6 +84,10 @@ wget -qO- "${repository}dists/${distribution}/${component}/binary-${architecture done } +for package in "${!urls[@]}"; do + extract "${package}" "${urls[${package}]}" +done + rm -f *.deb if substrate=$(readlink usr/include/substrate.h); then -- 2.45.2