From 60f3c99df5263e1c464bac6938e5f7320f96f2e5 Mon Sep 17 00:00:00 2001 From: PktSurf Date: Tue, 5 Nov 2024 12:27:16 +0530 Subject: [PATCH] Moved pkgdest variable inside a while loop and changed distro URL in bldpkg --- bldpkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bldpkg b/bldpkg index 1fb24f6..130bdd2 100755 --- a/bldpkg +++ b/bldpkg @@ -1,7 +1,7 @@ #!/bin/bash # Part of the SMLinux distribution -# http://pktsurf.in/git/pktsurf/smlinux +# http://git.pktsurf.in/smlinux # # /bin/bldpkg version 0.105 # Bash script to build SMLinux-specific packages @@ -1106,7 +1106,6 @@ autobuild() { # For loop to recurse through sections defined inside bldpkg.conf for section in "${sections[@]}" ; do - pkgdest="$pkgdest/$arch/$section" logdir="$parenttmp/sml/sml-buildlogs/$arch/$section" mkdir -p $logdir @@ -1157,6 +1156,7 @@ autobuild() { while IFS="" read -r package || [[ -n $package ]] ; do ( SECONDS=0 + pkgdest="$pkgdest/$arch/$section" currentpkgnumber="$(grep -Ewn "^$package" .buildlist.$section | cut -d: -f 1)" # We need this variable to switch back to the section directory inside the loop