Skip to content

Commit

Permalink
[backend] project link instantiate: expand links
Browse files Browse the repository at this point in the history
We need to expand the local package, otherwise we'll use the
vrev of the link which creates packages with too small releases.
  • Loading branch information
mlschroe committed May 21, 2019
1 parent 186aaa1 commit ba57ef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/bs_srcserver
Expand Up @@ -3376,7 +3376,8 @@ sub sourcecopy {
if ($proj && $proj->{'link'}) {
my $irev = BSSrcServer::Projlink::getrev_projlink($projid, $proj, $packid, undef, undef, 1);
if ($irev) {
$orev->{'vrev'} = $irev->{'vrev'} if $irev; # hack: overwrite vrev with instantiated vrev
lsrev_expanded($irev);
$orev->{'vrev'} = $irev->{'vrev'}; # hack: overwrite vrev with instantiated vrev
$cgi->{'withvrev'} = 1;
}
}
Expand Down

0 comments on commit ba57ef9

Please sign in to comment.