Skip to content

Commit

Permalink
Add define vendor to prjconf
Browse files Browse the repository at this point in the history
In order to allow use of the vendor macro in prjconf, add a define for
it in addition of the `Macro:` definition.

As this will get defined just after the `_project` one this shouldn't
have any side-effect even if some users are currently defining it in
their own configuration.

Signed-off-by: Nicolas Belouin <[email protected]>
  • Loading branch information
diconico07 committed Dec 19, 2024
1 parent 56bb21a commit f3192ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/bs_srcserver
Original file line number Diff line number Diff line change
Expand Up @@ -2558,6 +2558,7 @@ sub concatconfigs {
}
$vprojid = $projid if $vprojid eq '';
my $obsname = $BSConfig::obsname || 'build.opensuse.org';
$config .= "%define vendor obs://$obsname/$vprojid\n";
$macros .= "%vendor obs://$obsname/$vprojid\n";
$macros .= "%_download_url $BSConfig::repodownload\n" if $BSConfig::repodownload;

Expand Down

0 comments on commit f3192ea

Please sign in to comment.