diff options
author | Otavio Salvador <otavio@debian.org> | 2010-01-06 18:08:16 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@debian.org> | 2010-01-06 18:08:16 +0000 |
commit | a858e35a0d914720a6237e7903e46aab92752078 (patch) | |
tree | 8bee882ccdd15224471f8a6b92209cd2604b506c /functions | |
parent | eded2471a7265ad6384c4b90e5b438eaa9116da2 (diff) | |
download | debootstrap-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-- | functions | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |