wok rev 6230
tazbb: inverse sort_cook_list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 12 09:45:47 2010 +0200 (2010-09-12) |
parents | 07ceb84b3f14 |
children | 8a00d0929dfd |
files | tazbb/stuff/tazbb |
line diff
1.1 --- a/tazbb/stuff/tazbb Sun Sep 12 00:37:38 2010 +0000 1.2 +++ b/tazbb/stuff/tazbb Sun Sep 12 09:45:47 2010 +0200 1.3 @@ -443,6 +443,7 @@ 1.4 echo "" 1.5 done | awk '{ deps[$1] = $0; } 1.6 END { 1.7 + k=0; 1.8 while (1) { 1.9 skipped = 0; 1.10 done = 0; 1.11 @@ -450,7 +451,7 @@ 1.12 for (i = split(deps[entry], pkg, " "); i > 1; i--) 1.13 if (deps[pkg[i]] != "") break; 1.14 if (i == 1) { 1.15 - print pkg[1]; 1.16 + cook[k++] = pkg[1]; 1.17 deps[pkg[1]] = ""; 1.18 done++; 1.19 } 1.20 @@ -465,6 +466,7 @@ 1.21 break; 1.22 } 1.23 } 1.24 + while (k > 0) print cook[--k]; 1.25 } 1.26 ' 1.27 }