From a858e35a0d914720a6237e7903e46aab92752078 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 6 Jan 2010 18:08:16 +0000 Subject: Apply patch from Andres Salomon to honor --components when using mirror_style 'main' (closes: #561283). r61941 --- functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'functions') 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 -- cgit v1.2.3