Skip to content

Commit

Permalink
[backend] fix buildenv builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Nov 11, 2014
1 parent 844c1a5 commit 38ce5b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/bs_worker
Expand Up @@ -1953,7 +1953,7 @@ sub getbinaries_buildenv {
# check the cache
if ($cachedir) {
for my $needed (sort keys %needed) {
for my $bv ($needed{$needed}) {
for my $bv (@{$needed{$needed}}) {
my $repo = $bv->{'repo'};
my $projid = $repo->{'project'};
my $repoid = $repo->{'repository'};
Expand All @@ -1966,6 +1966,7 @@ sub getbinaries_buildenv {
if ($id eq $bv->{'hdrmd5'}) {
push @cacheold, [$cacheid, $s[7]];
delete $needed{$needed};
last;
}
} else {
unlink("$dir/$bv->{'name'}");
Expand All @@ -1988,7 +1989,7 @@ sub getbinaries_buildenv {

# download... slowly...
for my $needed (sort keys %needed) {
for my $bv ($needed{$needed}) {
for my $bv (@{$needed{$needed}}) {
my $repo = $bv->{'repo'};
my $server = $repo->{'server'} || $buildinfo->{'reposerver'};
my $projid = $repo->{'project'};
Expand Down

0 comments on commit 38ce5b5

Please sign in to comment.