Skip to content

Commit

Permalink
[backend] Support "allowrootforbuild" as build flag
Browse files Browse the repository at this point in the history
Also allow root builds if $BSConfig::norootexceptions is undef.
  • Loading branch information
mlschroe committed Jan 19, 2022
1 parent ff76b74 commit ca1eec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bs_worker
Original file line number Diff line number Diff line change
Expand Up @@ -3478,7 +3478,7 @@ sub dobuild {
push @args, '--clean';
push @args, '--changelog';
push @args, '--oldpackages', $oldpkgdir if $oldpkgdir && -d $oldpkgdir;
push @args, '--norootforbuild' unless $buildinfo->{'rootforbuild'} || ($BSConfig::norootexceptions && grep {"$projid/$packid" =~ /^$_$/} keys %$BSConfig::norootexceptions);
push @args, '--norootforbuild' unless !$BSConfig::norootexceptions || $bconf->{'buildflags:allowrootforbuild'} || $buildinfo->{'rootforbuild'} || grep {"$projid/$packid" =~ /^$_$/} keys %$BSConfig::norootexceptions;
push @args, '--baselibs-internal';
push @args, '--dist', "$buildroot/.build.config";
push @args, '--rpmlist', "$buildroot/.build.rpmlist";
Expand Down

0 comments on commit ca1eec3

Please sign in to comment.