cookutils rev 799
cooker: fix a crash case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 21:08:50 2016 +0200 (2016-05-25) |
parents | 29003fb48208 |
children | 61b1205f05ae |
files | cooker |
line diff
1.1 --- a/cooker Sun May 08 10:11:59 2016 +0100 1.2 +++ b/cooker Wed May 25 21:08:50 2016 +0200 1.3 @@ -526,8 +526,11 @@ 1.4 for pkg in *; do 1.5 if [ ! -d "${wok}-hg/$pkg" ]; then 1.6 echo "Removing package: $pkg" | log_commits 1.7 - . $wok/$pkg/receipt 1.8 - rm -rf $PKGS/$PACKAGE-$VERSION* $wok/$pkg $LOGS/$pkg.log 1.9 + if [ -s $wok/$pkg/receipt ]; then 1.10 + . $wok/$pkg/receipt 1.11 + rm -f $PKGS/$PACKAGE-$VERSION* 1.12 + fi 1.13 + rm -rf $wok/$pkg $LOGS/$pkg.log 1.14 sed -i "/^${pkg}$/"d $blocked $broken $commits.tmp 1.15 fi 1.16 done