# HG changeset patch # User Christopher Rogers # Date 1340230673 0 # Node ID e09f02df6e1eb32e8fcc835b6c96367bb4a5b3cc # Parent 0d853e0032ef3484d3b41454db6e136501d8f6b1 cook: Add --pack option. This is so when i just change genpkg_rules i can just repack package if WOK/pkg/taz folder exists without compiling the package again. diff -r 0d853e0032ef -r e09f02df6e1e cook --- a/cook Wed Jun 20 02:46:06 2012 +0000 +++ b/cook Wed Jun 20 22:17:53 2012 +0000 @@ -1311,7 +1311,16 @@ gettext "Unblocking:"; echo -n " $pkg" sed -i "/^${pkg}$/"d $blocked status && newline && exit 0 ;; - + --pack) + if [ -d $WOK/$pkg/taz ]; then + rm -rf $WOK/$pkg/taz + [ -f $LOGS/$pkg-pack.log ] && rm -rf $LOGS/$pkg-pack.log + packit 2>&1 | tee -a $LOGS/$pkg-pack.log + clean_log + else + gettext "Need to build $pkg." && exit 0 + fi + exit 0 ;; esac # Check if wanted is built now so we have separate log files.