1 |
commit: 95d1d237d95adbaeeddb824a8bee852cd8614bbf |
2 |
Author: Kent Fredric <kentfredric <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Oct 30 20:29:51 2011 +0000 |
4 |
Commit: Kent Fredric <kentfredric <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Oct 31 02:45:47 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=95d1d237 |
7 |
|
8 |
Sort and print by phase order |
9 |
|
10 |
--- |
11 |
scripts/show_deptree.pl | 10 +++++++++- |
12 |
1 files changed, 9 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/scripts/show_deptree.pl b/scripts/show_deptree.pl |
15 |
index 8b78896..e49728d 100755 |
16 |
--- a/scripts/show_deptree.pl |
17 |
+++ b/scripts/show_deptree.pl |
18 |
@@ -340,11 +340,19 @@ sub gentooize_pkg { |
19 |
return 'dev-perl/' . $pkg; |
20 |
} |
21 |
|
22 |
+my @queue; |
23 |
+ |
24 |
for my $module ( keys %modules ) { |
25 |
for my $declaration ( @{ $modules{$module} } ) { |
26 |
- handle_declaration( $release, $module, $declaration, *STDOUT ); |
27 |
+ push @queue, [ $module, $declaration ]; |
28 |
} |
29 |
} |
30 |
+my @squeue = |
31 |
+ sort { $a->[1]->[2] cmp $b->[1]->[2] or $a->[1]->[3] cmp $b->[1]->[3] or $a->[0] cmp $b->[0] } @queue; |
32 |
+ |
33 |
+for my $qi (@squeue) { |
34 |
+ handle_declaration( $release, @{$qi}, *STDOUT ); |
35 |
+} |
36 |
|
37 |
use Data::Dump qw( pp ); |
38 |
use JSON qw( to_json encode_json ); |