]> git.donarmstrong.com Git - wannabuild.git/commitdiff
add filter code for components
authorAndreas Barth <aba@not.so.argh.org>
Wed, 10 Mar 2010 15:44:13 +0000 (15:44 +0000)
committerAndreas Barth <aba@not.so.argh.org>
Wed, 10 Mar 2010 15:44:13 +0000 (15:44 +0000)
bin/wanna-build
etc/yaml/wanna-build.yaml

index d1fc48e167a988cba5adb5032bd1c9aff08bbadb..f6634a22583afa189ba9c8a8d100a1df6e6c8619 100755 (executable)
@@ -1912,6 +1912,9 @@ sub list_packages {
                push @list, calculate_prio($db->{$name});
        }
 
+        # filter components
+        @list = grep { my $i = $_->{'component'}; grep { $i eq $_ } split /[, ]+/, $yamlmap->{"restrict"}{'component'} } @list;
+
        foreach $pkg (sort sort_list_func @list) {
                 if ($printformat) {
                     print print_format($printformat, $pkg, {'cnt' => $cnt, 'scnt' => \%scnt})."\n";
index eb56539142aa42da922d5be7dec79ad755b3c839..9d5f24d15ba323c79277c722ab9fbf8a314a76c1 100644 (file)
@@ -25,3 +25,5 @@ list-order:
     failed: fPcpsn
     needs-build: CWn
     building: bn
+restrict:
+    component: main contrib