# HG changeset patch # User Pascal Bellard # Date 1264525588 -3600 # Node ID 19d581dc16cb3e0831b20fcad2072822e1447507 # Parent 224b16a6c5867619415c2ca3c8922d06fc2146b5 tazwok compile does not generate other packages anymore diff -r 224b16a6c586 -r 19d581dc16cb tazwok --- a/tazwok Sun Jan 17 18:43:21 2010 +0000 +++ b/tazwok Tue Jan 26 18:06:28 2010 +0100 @@ -354,14 +354,6 @@ echo "" echo "compilation done : `date +%Y%m%d\ \%H:%M:%S`" >> $LOG - # Regenerate every package that wants a PACKAGE compiled - # make tazwok genpkg happy - mkdir $WOK/$PACKAGE/taz - for i in $( grep -l "^WANTED=\"$PACKAGE\"" $WOK/*/receipt) ; do - tazwok genpkg $(basename $(dirname $i)) - done - # Still needs tazwok genpkg for this package - rm -rf $WOK/$PACKAGE/taz else echo "================================================================================" echo "Compilation failed. Please read the compiler output." @@ -373,6 +365,18 @@ fi } +# Regenerate every package that wants a PACKAGE compiled +refresh_packages_from_compile() +{ + # make tazwok genpkg happy + mkdir $WOK/$PACKAGE/taz + for i in $( grep -l "^WANTED=\"$PACKAGE\"" $WOK/*/receipt) ; do + tazwok genpkg $(basename $(dirname $i)) + done + # Still needs tazwok genpkg for this package + rm -rf $WOK/$PACKAGE/taz +} + # Copy all generic files (locale, pixmaps, .desktop). We use standard paths, # so some packages need to copy these files with the receipt and genpkg_rules. # This function is executed by gen_package when 'tazwok genpkg'. @@ -1125,6 +1129,7 @@ # check_root compile_package + refresh_packages_from_compile gen_package ;; cook-list) @@ -1135,8 +1140,7 @@ check_for_list for pkg in $LIST do - tazwok compile $pkg - tazwok genpkg $pkg + tazwok cook $pkg done ;; clean)