mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-18 10:26:27 +01:00
sqg: Remove parallel detection.
Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
parent
e5219788af
commit
b86719b883
2 changed files with 2 additions and 24 deletions
|
@ -37,18 +37,6 @@ sanity_checks () {
|
|||
mkdir -p "$SQG_TMP_DIR"
|
||||
}
|
||||
|
||||
#
|
||||
# Returns 1 if GNU Parallel is installed. Otherwise 0.
|
||||
#
|
||||
has_parallel () {
|
||||
parallel --help &> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
#
|
||||
# Prints the help message.
|
||||
#
|
||||
|
@ -237,19 +225,10 @@ execute_build () {
|
|||
VERBOSE="yes"
|
||||
fi
|
||||
|
||||
has_parallel
|
||||
if [ $? -eq 1 ]; then
|
||||
printf '%s\n' "${PKGSNEW[@]}" | \
|
||||
printf '%s\n' "${PKGSNEW[@]}" | \
|
||||
parallel --eta --will-cite --jobs $JOBS \
|
||||
/usr/libexec/sbopkg/sqg/sqg-build-queuefile \
|
||||
"$REPO_DIR" "$QUEUEDIR" {} "$VERBOSE"
|
||||
else
|
||||
for PKG in "${PKGSNEW[@]}"; do
|
||||
printf "."
|
||||
/usr/libexec/sbopkg/sqg/sqg-build-queuefile \
|
||||
"$REPO_DIR" "$QUEUEDIR" "$PKG" "$VERBOSE"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ ! -z $CUSTOM_QUEUE ]; then
|
||||
build_queuefile_custom "$QUEUEDIR" "$CUSTOM_QUEUE" "$PKGS"
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
SBOPKG NEWS
|
||||
|
||||
sbopkg-dev (2018-01-14 10:17:13 UTC)
|
||||
sbopkg-dev (2018-04-25 10:27:24 UTC)
|
||||
FEATURES
|
||||
* sqg: Parallelize building of single and all packages by option -j.
|
||||
Requires GNU Parallel.
|
||||
Patch by Marcel Saegebarth.
|
||||
* sqg: Introduced new simple filesystem cache.
|
||||
This will reduce queue generation time significantly when
|
||||
|
|
Loading…
Reference in a new issue