tazwok rev 383 4.2.2
Few improvements to gen_package()
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Mar 01 00:16:37 2011 +0100 (2011-03-01) |
parents | 873c800ecd9e |
children | 5be0980d0cb8 |
files | tazwok |
line diff
1.1 --- a/tazwok Mon Feb 28 23:12:13 2011 +0100 1.2 +++ b/tazwok Tue Mar 01 00:16:37 2011 +0100 1.3 @@ -936,6 +936,7 @@ 1.4 # Remove pkg from cooklist to avoid re-cook it if no changes happens 1.5 # in the cook stuff. 1.6 sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/cooklist 1.7 + sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/commit 1.8 1.9 gen_cookmd5 1.10 1.11 @@ -1118,6 +1119,22 @@ 1.12 report step "Restoring original package tree" 1.13 { zcat fs.cpio.gz 2> /dev/null || unlzma -c fs.cpio.lzma; } | cpio --quiet -id 1.14 rm fs.cpio.* && cd .. 1.15 + 1.16 + # Recook of reverse-depends if package was broken. 1.17 + if grep -q "^$PACKAGE$" $PACKAGES_REPOSITORY/broken; then 1.18 + report step "Planning re-try a cook of reverse depends" 1.19 + sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/broken 1.20 + for rdep in $(look_for_rdep); do 1.21 + grep -q "^$rdep$" $PACKAGES_REPOSITORY/broken || continue 1.22 + grep -q "^$rdep$" $PACKAGES_REPOSITORY/cooklist && continue 1.23 + echo "Adding $rdep to the cooklist" 1.24 + echo $rdep >> $PACKAGES_REPOSITORY/cooklist 1.25 + regen_cooklist=t 1.26 + done 1.27 + report end-step 1.28 + fi 1.29 + sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/commit 1.30 + sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/cooklist 1.31 1.32 # Log process. 1.33 echo "$PACKAGE-$VERSION$EXTRAVERSION.tazpkg (done)" >> $LOG 1.34 @@ -1125,10 +1142,6 @@ 1.35 echo "Package $PACKAGE ($VERSION$EXTRAVERSION) generated." 1.36 echo "Size : `du -sh $INCOMING_REPOSITORY/$PACKAGE-$VERSION$EXTRAVERSION.tazpkg`" 1.37 echo "" 1.38 - 1.39 - sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/broken 1.40 - sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/commit 1.41 - sed "/^$PACKAGE$/d" -i $PACKAGES_REPOSITORY/cooklist 1.42 } 1.43 1.44 ########################################################################