cookutils rev 765
cooker: do not recook while cooking...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 10 14:17:56 2015 +0200 (2015-10-10) |
parents | 91cb129f0b7b |
children | a537875d79f9 |
files | cooker |
line diff
1.1 --- a/cooker Sat Oct 10 12:59:57 2015 +0200 1.2 +++ b/cooker Sat Oct 10 14:17:56 2015 +0200 1.3 @@ -191,6 +191,7 @@ 1.4 cook_commits() { 1.5 if [ -s "$commits" ]; then 1.6 for pkg in $(cat $commits); do 1.7 + ps | grep -q "cook $pkg$" && continue 1.8 echo "cook:$pkg" > $command 1.9 cook $pkg || broken 1.10 sed -i /^${pkg}$/d $commits 1.11 @@ -203,6 +204,7 @@ 1.12 1.13 cook_list() { 1.14 for pkg in $(cat $cooklist); do 1.15 + ps | grep -q "cook $pkg$" && continue 1.16 cook $pkg || broken 1.17 sed -i /^${pkg}$/d $cooklist 1.18 done 1.19 @@ -361,6 +363,7 @@ 1.20 1.21 pkg|-p) 1.22 # Same as 'cook pkg' but with log for web interface. 1.23 + ps | grep -q "cook $pkg$" && echo 'Already running' && continue 1.24 cook $pkg || broken 1.25 clean_exit ;; 1.26