Skip to content

Commit

Permalink
Merge pull request #13827 from adrianschroeter/setvcs
Browse files Browse the repository at this point in the history
[backend] add setvcs build flag to convert scmsync tag into rpm VCS tag
  • Loading branch information
adrianschroeter authored Feb 10, 2023
2 parents 0c1cb76 + b0b4ae8 commit 2b62b4d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/backend/BSSched/BuildJob.pm
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ sub create_jobdata {
$binfo->{'module'} = $bconf->{'modules'} if $bconf->{'modules'};
my $obsname = $gctx->{'obsname'};
$binfo->{'disturl'} = "obs://$obsname/$projid/$repoid/$pdata->{'srcmd5'}-$packid" if defined($obsname) && defined($packid);
$binfo->{'vcs'} = $pdata->{'scmsync'} if $pdata->{'scmsync'};

# no release/debuginfo for patchinfo and deltarpm builds
return $binfo if $buildtype eq 'patchinfo' || $buildtype eq 'deltarpm';
Expand Down
2 changes: 2 additions & 0 deletions src/backend/BSXML.pm
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ our $projpack = [
'srcmd5', # commit id
'versrel',
'verifymd5', # tree id
'scmsync',
'originproject',
'revtime',
'constraintsmd5', # md5sum of constraints file in srcmd5
Expand Down Expand Up @@ -556,6 +557,7 @@ our $buildinfo = [
'srcmd5',
'verifymd5',
'rev',
'vcs',
'disturl',
'reason', # just for the explain string of a build reason
'needed', # number of blocked
Expand Down
2 changes: 1 addition & 1 deletion src/backend/bs_srcserver
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ sub getprojpack {
$pinfo->{'error'} = 'package does not exist';
next;
}
for (qw{build publish debuginfo useforbuild bcntsynctag sourceaccess privacy access lock releasename}) {
for (qw{build publish debuginfo useforbuild bcntsynctag scmsync sourceaccess privacy access lock releasename}) {
$pinfo->{$_} = $pack->{$_} if $pack->{$_};
}
if (!$pinfo->{'build'}) {
Expand Down
1 change: 1 addition & 0 deletions src/backend/bs_worker
Original file line number Diff line number Diff line change
Expand Up @@ -3774,6 +3774,7 @@ sub dobuild {
push @args, '--disturl', $disturl;
push @args, '--linksources' if $localkiwi;
push @args, '--signdummy' if ($kiwimode || '') eq 'product' && -e "$statedir/build/signdummy";
push @args, '--vcs', $buildinfo->{'vcs'} if $buildinfo->{'vcs'} && $bconf->{'buildflags:setvcs'};
if ($packid =~ /(?<!^_product)(?<!^_patchinfo):./) {
$packid =~ /^(.*):(.*?)$/;
push @args, "--obspackage=$1" if $needobspackage;
Expand Down

0 comments on commit 2b62b4d

Please sign in to comment.