Moved pkgdest variable inside a while loop and changed distro URL in bldpkg
This commit is contained in:
parent
e71a0c1e3f
commit
60f3c99df5
1 changed files with 2 additions and 2 deletions
4
bldpkg
4
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
|
||||
|
|
Loading…
Reference in a new issue