wok-current diff cookutils/stuff/pkgdb-no-parallel.patch @ rev 25539
Up perl-test-compile (3.1.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 09 12:11:13 2023 +0000 (22 months ago) |
parents | bde99f8d4916 |
children |
line diff
1.1 --- a/cookutils/stuff/pkgdb-no-parallel.patch Tue Jan 11 15:46:14 2022 +0000 1.2 +++ b/cookutils/stuff/pkgdb-no-parallel.patch Thu Mar 09 12:11:13 2023 +0000 1.3 @@ -10,7 +10,7 @@ 1.4 +# Avoid parallel execution 1.5 1.6 +BLOCK=$PKGS/pkgdb.block 1.7 -+if ps | grep -q " $(cat $BLOCK) "; then 1.8 ++if [ -e "$BLOCK" ] && ps | grep -q " $(cat $BLOCK) "; then 1.9 + echo "pkgdb already running - exiting now" | dblog 1.10 + exit 1 1.11 +fi