]> git.donarmstrong.com Git - wannabuild.git/blobdiff - bin/wb-graph
Revert commit to use the common list of arches, it's listed in a fixed order in the...
[wannabuild.git] / bin / wb-graph
index 2a952d004b2374ef05cbc525c459917cf5d8e1a9..cd9c5e43ec53f4da2c58b812b7d81cc1ca24a596 100755 (executable)
@@ -42,10 +42,10 @@ foreach $arch (@archs) {
 
 my($lastmsg, %n_state, $total, %n_builder, $pu_total);
 $pu_total = 0;
-$n_state{"Installed"} = 0;
-open( PIPE, "wanna-build --database=$arch/build-db --dist=$dist --list=all |" )
+$n_state{"Installed"} = 0; 
+open( my $pipe, '-|', "wanna-build -A $arch --dist=$dist --list=all" )
        or die "Cannot spawn wanna-build: $!\n";
-while( <PIPE> ) {
+while( <$pipe> ) {
        if (/^Database for $dist doesn't exist$/) {
                last;
        }
@@ -64,7 +64,7 @@ while( <PIPE> ) {
        }
        $lastmsg = $_;
 }
-close( PIPE );
+close( $pipe );
 if ($?) {
        print ", 0, 0";
 } else {