summaryrefslogtreecommitdiff
path: root/sysroot.sh
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-12 15:25:04 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-14 05:09:08 -0700
commit54287d55c26815034647151de2252c2bf2268289 (patch)
tree77a28044de61d629026a3b7dc69bd772a7028841 /sysroot.sh
parente052c855915574d3bea528d5f7a2eaef101ff3c4 (diff)
Parse URLs from Packages separately from extract.
Diffstat (limited to 'sysroot.sh')
-rwxr-xr-xsysroot.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysroot.sh b/sysroot.sh
index 26ecbad..c32440a 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