From d75c5c0a77dc9c99782e48b85dd2c7827325e9ac Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sat, 3 Apr 2021 13:56:04 +0200
Subject: Move sources.list Hook to chroot

---
 auto/functions/prepare-chroot-sources-list-hook | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/auto/functions/prepare-chroot-sources-list-hook b/auto/functions/prepare-chroot-sources-list-hook
index a7f8734..fd0948a 100644
--- a/auto/functions/prepare-chroot-sources-list-hook
+++ b/auto/functions/prepare-chroot-sources-list-hook
@@ -2,7 +2,7 @@
 
 current_script="$(basename "$0"|sed 's/^lb_//')"
 
-if [ "$current_script" = "chroot_includes" ]; then
+if [ "$current_script" = "chroot" ]; then
 
 # Including common functions
 [ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" ||
@@ -24,10 +24,12 @@ Set_defaults
 		echo "DEBUG: LB_PARENT_MIRROR ${LB_PARENT_MIRROR}"
 		echo "DEBUG: LB_MIRROR_CHROOT ${LB_MIRROR_CHROOT}"
 		echo "DEBUG: LB_PARENT_MIRROR_BINARY ${LB_PARENT_MIRROR_BINARY}"
+		echo "DEBUG: LB_ARCHIVES ${LB_ARCHIVES}"
 	fi
 
 	if [ -e config/chroot_local-includes/etc/apt/sources.list ]; then
-		echo "Sources.list found"
+		echo "sources.list found in config/chroot_local-includes/"
 		sed -i -e "s#@MIRRORDUMMY@#${LB_MIRROR_CHROOT}#"g config/chroot_local-includes/etc/apt/sources.list
+		cat config/chroot_local-includes/etc/apt/sources.list
 	fi
 fi
-- 
cgit v1.0