Skip to content

Commit

Permalink
[backend] followup builds for kiwi may be run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed May 8, 2015
1 parent 6ef6939 commit 38f3046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/bs_worker
Expand Up @@ -2560,6 +2560,7 @@ sub dobuild {
getbinaries($buildinfo, $pkgdir, $srcdir, $preinstallimagedata);
}
undef $oldpkgdir;
$buildinfo->{'rootforbuild'} = 1 if $buildinfo->{'file'} =~ /\.kiwi$/;
$buildinfo->{'file'} = $followupmode;
# recalc kiwimode as we changed the file
undef $kiwimode;
Expand Down Expand Up @@ -2704,7 +2705,7 @@ sub dobuild {
push @args, '--clean';
push @args, '--changelog';
push @args, '--oldpackages', $oldpkgdir if $oldpkgdir && -d $oldpkgdir;
push @args, '--norootforbuild' unless $BSConfig::norootexceptions && grep {"$projid/$packid" =~ /^$_$/} keys %$BSConfig::norootexceptions;
push @args, '--norootforbuild' unless $buildinfo->{'rootforbuild'} || ($BSConfig::norootexceptions && grep {"$projid/$packid" =~ /^$_$/} keys %$BSConfig::norootexceptions);
push @args, '--baselibs-internal';
push @args, '--lint';
push @args, '--dist', "$buildroot/.build.config";
Expand Down

0 comments on commit 38f3046

Please sign in to comment.