Skip to content

Commit

Permalink
[backend] fix line ending that broke the previous commit
Browse files Browse the repository at this point in the history
The code was wrong for a long time, but the copy and paste of
the last commit exposed the bug.
  • Loading branch information
mlschroe committed May 9, 2016
1 parent 9c3b5a1 commit 5ab4ae6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/bs_repserver
Original file line number Diff line number Diff line change
Expand Up @@ -677,14 +677,14 @@ sub getbinarylist_repository {
my $n = $bin;
$n .= ".$1" if $path =~ /\.($binsufsre)$/;
if ($BSStdServer::isajax) {
push @files, {'name' => $n, 'filename' => $path},
push @files, {'name' => $n, 'filename' => $path};
next;
}
my $fd = gensym;
if (!open($fd, '<', $path)) {
push @files, {'name' => $bin, 'error' => 'not available'};
} else {
push @files, {'name' => $n, 'filename' => $fd},
push @files, {'name' => $n, 'filename' => $fd};
}
}
undef $repo;
Expand Down Expand Up @@ -838,12 +838,12 @@ sub getbinarylist {
for (sort @bins) {
next if %binaries && !$binaries{$_};
if ($BSStdServer::isajax) {
push @files, {'name' => $_, 'filename' => "$reporoot/$prp/$arch/$packid/$_"},
push @files, {'name' => $_, 'filename' => "$reporoot/$prp/$arch/$packid/$_"};
next;
}
my $fd = gensym;
next unless open($fd, '<', "$reporoot/$prp/$arch/$packid/$_");
push @files, {'name' => $_, 'filename' => $fd},
push @files, {'name' => $_, 'filename' => $fd};
}
BSWatcher::reply_cpio(\@files);
return undef;
Expand Down

0 comments on commit 5ab4ae6

Please sign in to comment.