X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bin%2Fwb-graph;h=2a952d004b2374ef05cbc525c459917cf5d8e1a9;hb=8db87f5715ad8fcebdabf943fd79405f688343aa;hp=fb85f093776fc1e9dc2495d26ea86a779ea103e5;hpb=ca63323f793d72b60f0574eb4202eb3a0c64618f;p=wannabuild.git diff --git a/bin/wb-graph b/bin/wb-graph index fb85f09..2a952d0 100755 --- a/bin/wb-graph +++ b/bin/wb-graph @@ -5,7 +5,7 @@ use strict; use vars qw($dist); my $previously_built; -$dist = "unstable"; +$dist = "sid"; while( @ARGV && $ARGV[0] =~ /^-/ ) { $_ = shift @ARGV; @@ -19,11 +19,6 @@ while( @ARGV && $ARGV[0] =~ /^-/ ) { else { $dist = shift @ARGV; } - $dist = "oldstable" if $dist eq "o"; - $dist = "stable" if $dist eq "s"; - $dist = "tesing" if $dist eq "t"; - $dist = "unstable" if $dist eq "u"; - die "Bad distribution\n" if !isin($dist, qw(oldstable stable testing unstable)); } elsif (/^--$/) { last; @@ -36,7 +31,7 @@ while( @ARGV && $ARGV[0] =~ /^-/ ) { } } -my $date=`date +%m/%d/%Y`; +my $date=`date -u "+%m/%d/%Y %T"`; chop($date); print "$date"; @@ -48,7 +43,7 @@ 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 2>&1 |" ) +open( PIPE, "wanna-build --database=$arch/build-db --dist=$dist --list=all |" ) or die "Cannot spawn wanna-build: $!\n"; while( ) { if (/^Database for $dist doesn't exist$/) {