summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions b/functions
index 674d649..bf999f1 100644
--- a/functions
+++ b/functions
@@ -949,9 +949,11 @@ mv_invalid_to () {
setup_apt_sources () {
mkdir -p "$TARGET/etc/apt"
+ # Cope with the foreign case where COMPONENTS would be empty:
+ sources_components="${COMPONENTS:-$USE_COMPONENTS}"
for m in "$@"; do
local cs=""
- for c in $COMPONENTS; do
+ for c in $sources_components; do
local path="dists/$SUITE/$c/binary-$ARCH/Packages"
local pkgdest="$TARGET/$($DLDEST pkg "$SUITE" "$c" "$ARCH" "$m" "$path")"
if [ -e "$pkgdest" ]; then cs="$cs $c"; fi