cookutils rev 714
cookiso: add --force
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 09 12:54:34 2015 +0200 (2015-04-09) |
parents | 3ebd308cccc7 |
children | 4aeb98e0ff3c |
files | cookiso |
line diff
1.1 --- a/cookiso Thu Mar 12 08:44:11 2015 +0100 1.2 +++ b/cookiso Thu Apr 09 12:54:34 2015 +0200 1.3 @@ -20,6 +20,8 @@ 1.4 for opt in "$@" 1.5 do 1.6 case "$opt" in 1.7 + --force) 1.8 + force="yes" ;; 1.9 --pkgdb) 1.10 cook pkgdb --flavors ;; 1.11 --push) 1.12 @@ -64,6 +66,7 @@ 1.13 rolling Build the rolling ISOs if any changes. 1.14 1.15 $(echo -e "\033[1mOptions:\033[0m") 1.16 + --force Build ISO rolling anyway. 1.17 --pkgdb Generate packages DB before building ISO. 1.18 --push Upload freshly generated ISO to a server. 1.19 --flavors= List of flavors to generate with 'gen' command. 1.20 @@ -211,7 +214,7 @@ 1.21 # Packages changes 1.22 [ -f "$last" ] || cp -f $pkgs $cache 1.23 diff $last $pkgs > $diff 1.24 - if [ -s "$diff" ]; then 1.25 + if [ "$force" ] || [ -s "$diff" ]; then 1.26 echo "Found new or rebuilt packages" | log_bot 1.27 cat $diff | grep "^+" >> $rollog 1.28 #