Skip to content

Commit

Permalink
[backend] fix cross-build code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Feb 16, 2012
1 parent 681eb6c commit ba487c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_dispatch
Expand Up @@ -369,7 +369,7 @@ while (1) {
push @{$crossarchs{$2}}, $1 if /^(.*):([^:]+):cross$/;
}
for my $crossarch (sort keys %crossarchs) {
next unless $idlearch{$crossarch};
next unless $idlearch{$arch};
my %cj = map {$_ => 1} ls("$jobsdir/$crossarch");
# deltete orphaned marker
for (@{$crossarchs{$crossarch}}) {
Expand Down Expand Up @@ -574,7 +574,7 @@ while (1) {
last;
}
}
my @idle = List::Util::shuffle(@{$idlearch{$ic->{'hostarch'} || $arch} || []});
my @idle = List::Util::shuffle(@{$idlearch{$ic->{$job}->{'hostarch'} || $arch} || []});
last unless @idle;
my %poweridle;
if ($powerjobs{$job}) {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/bs_sched
Expand Up @@ -516,7 +516,7 @@ sub add_crossmarker {
my $hostarch = $bconf->{'hostarch'};
return if $hostarch eq $myarch;
return unless $BSCando::knownarch{$hostarch};
my $marker = "$jobsdir/$hostarch/$job:$hostarch:cross";
my $marker = "$jobsdir/$hostarch/$job:$myarch:cross";
return if -e $marker;
mkdir_p("$jobsdir/$hostarch");
BSUtil::touch($marker);
Expand Down

0 comments on commit ba487c2

Please sign in to comment.