From 49d3cc1b8630d8a4513ce449bb2c658ec9cd70f9 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sat, 21 Sep 2024 10:01:17 +0200
Subject: Create partial config log

This will check for download succes
If no succes the iso will be removed
via iso_check in nightly-build bash
TODO: filename in /tmp
---
 auto/config        | 6 ++++++
 nightly_build.bash | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/auto/config b/auto/config
index 28bdde7..e0fb4cd 100755
--- a/auto/config
+++ b/auto/config
@@ -201,7 +201,13 @@ lb config noauto --linux-packages "$LB_LINUX_PACKAGES" --linux-flavours "$LB_LIN
 
 # Fetch kanotix-scripts if necessary
 mkdir -p config/chroot_local-includes/usr/local/bin
+echo "#KLB_config.log" > /tmp/KLB_config.log
 grep -oe '^[^ #]*' scripts.urls | wget -i- -N -q -P config/chroot_local-includes/usr/local/bin
+if [ $? -ne 0 ]; then
+   echo "E: Script download failed..." >>/tmp/KLB_config.log
+else
+   echo "Debug: Script download succes..." >>/tmp/KLB_config.log
+fi
 chmod 755 config/chroot_local-includes/usr/local/bin/*sh || :
 
 case "$LB_DISTRIBUTION" in
diff --git a/nightly_build.bash b/nightly_build.bash
index 5ec6b00..25eae97 100755
--- a/nightly_build.bash
+++ b/nightly_build.bash
@@ -6,6 +6,10 @@ function check_iso {
 
 echo "K: Kanotix start iso check..." >>binary.log
     IERR=0
+if grep -q "^E: " /tmp/KLB_config.log; then
+    echo "K: Download ERROR found...1" >>binary.log
+    IERR=5
+fi
 if grep -q "^E: " binary.log; then
     echo "K: build ERROR found...1" >>binary.log
     IERR=1
-- 
cgit v1.0