summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@debian.org>2010-01-06 18:08:16 +0000
committerOtavio Salvador <otavio@debian.org>2010-01-06 18:08:16 +0000
commita858e35a0d914720a6237e7903e46aab92752078 (patch)
tree8bee882ccdd15224471f8a6b92209cd2604b506c /functions
parenteded2471a7265ad6384c4b90e5b438eaa9116da2 (diff)
downloaddebootstrap-a858e35a0d914720a6237e7903e46aab92752078.tar.gz
Apply patch from Andres Salomon <dilinger@collabora.co.uk> to honor --components when using mirror_style 'main' (closes: #561283).
r61941
Diffstat (limited to 'functions')
-rw-r--r--functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions b/functions
index 0ba5ae7..8090c19 100644
--- a/functions
+++ b/functions
@@ -649,9 +649,13 @@ download_release () {
download_main_indices () {
local m1="${MIRRORS%% *}"
+ local comp="${USE_COMPONENTS}"
progress 0 100 DOWNMAINPKGS "Downloading Packages file"
progress_next 100
- COMPONENTS=main
+
+ if [ -z "$comp" ]; then comp=main; fi
+ COMPONENTS="$(echo $comp | tr '|' ' ')"
+
export COMPONENTS
for m in $MIRRORS; do
for c in $COMPONENTS; do