diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2012-02-25 15:26:11 +0100 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2012-02-25 15:28:36 +0100 |
commit | 58b226edc51f260a19cf0655bbec67622ebe7cef (patch) | |
tree | 21384a39ab2ffba682825d221d0995196d16bfb9 /tools/builds.pm | |
parent | 8c7d372e45c186084d9ba4c9f60e3c5f39d64a35 (diff) |
Add "allbuilds" to builds.pm, similar to "stablebuilds" and "usablebuilds"
Change-Id: Ia81a090e0c5ad53b09c38861b17e14674b1087d4
Diffstat (limited to 'tools/builds.pm')
-rw-r--r-- | tools/builds.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/builds.pm b/tools/builds.pm index 761a10b4a6..c2dba671b2 100644 --- a/tools/builds.pm +++ b/tools/builds.pm @@ -344,4 +344,14 @@ sub stablebuilds { return @list; } +sub allbuilds { + my @list; + + for my $b (sort byname keys %builds) { + push @list, $b if ($builds{$b}{status} >= 1); + } + + return @list; +} + 1; |