wok rev 24282
cookutils: remove old pkgdb.block (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 11 18:14:39 2022 +0000 (2022-01-11) |
parents | bde99f8d4916 |
children | 0817aa6c98ce |
files | cookutils/stuff/pkgdb-no-parallel.patch |
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 Tue Jan 11 18:14:39 2022 +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