cookutils rev 169
Remove deleted pkgs in wok
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 16 15:20:12 2011 +0200 (2011-05-16) |
parents | 0d3a737e695e |
children | c2aaf8d964ca |
files | cook.site cooker |
line diff
1.1 --- a/cook.site Sun May 15 19:53:00 2011 +0100 1.2 +++ b/cook.site Mon May 16 15:20:12 2011 +0200 1.3 @@ -21,7 +21,7 @@ 1.4 # Default options (BUILD_HOST is set in cook.conf) 1.5 prefix=/usr 1.6 datarootdir=$prefix/share 1.7 -datadir=$datarootdir 1.8 +#datadir=$datarootdir 1.9 localedir=$datarootdir/locale 1.10 infodir=$datarootdir/info 1.11 mandir=$datarootdir/man
2.1 --- a/cooker Sun May 15 19:53:00 2011 +0100 2.2 +++ b/cooker Mon May 16 15:20:12 2011 +0200 2.3 @@ -426,6 +426,18 @@ 2.4 echo $pkg >> $commits.tmp 2.5 done 2.6 done 2.7 + 2.8 + # We may have deleted packages and files in stuff/ 2.9 + cd $wok 2.10 + for pkg in * 2.11 + do 2.12 + if [ ! -d "${wok}-hg/$pkg" ]; then 2.13 + echo "Removing package: $pkg" 2.14 + . $wok/$pkg/receipt 2.15 + rm -rf $PKGS/$PACKAGE-$VERSION* 2.16 + rm -rf $wok/$pkg 2.17 + fi 2.18 + done 2.19 2.20 # Keep previous commit and discard duplicate lines 2.21 cat $commits $commits.tmp | sed /"^$"/d > $commits.new