rm -f data.tar
}
+declare -A urls
+
wget -qO- "${repository}dists/${distribution}/${component}/binary-${architecture}/Packages.bz2" | bzcat | {
regex='^([^ \t]*): *(.*)'
declare -A fields
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
done
}
+for package in "${!urls[@]}"; do
+ extract "${package}" "${urls[${package}]}"
+done
+
rm -f *.deb
if substrate=$(readlink usr/include/substrate.h); then