wok rev 24281

cookutils: remove old pkgdb.block
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 11 15:46:14 2022 +0000 (2022-01-11)
parents 00b254b52ef6
children 818db3c96a15
files cookutils/stuff/pkgdb-no-parallel.patch
line diff
     1.1 --- a/cookutils/stuff/pkgdb-no-parallel.patch	Mon Jan 10 17:09:47 2022 +0100
     1.2 +++ b/cookutils/stuff/pkgdb-no-parallel.patch	Tue Jan 11 15:46:14 2022 +0000
     1.3 @@ -10,11 +10,11 @@
     1.4  +# Avoid parallel execution
     1.5   
     1.6  +BLOCK=$PKGS/pkgdb.block
     1.7 -+if [ -e "$BLOCK" ]; then
     1.8 -+	echo "pkgdb already executed - exiting now" | dblog
     1.9 ++if ps | grep -q " $(cat $BLOCK) "; then
    1.10 ++	echo "pkgdb already running - exiting now" | dblog
    1.11  +	exit 1
    1.12  +fi
    1.13 -+touch $BLOCK
    1.14 ++echo $$ > $BLOCK
    1.15  +
    1.16   # Create suitable packages list for TazPkg and only for built packages
    1.17   # as well as flavors files for TazLiTo. We don't need logs since we do it