From: biao716.wang Date: Wed, 1 Dec 2021 11:57:16 +0000 (+0900) Subject: revert the change:Use the defalut uid:gid in /usr/bin/build X-Git-Tag: submit/trunk/20220106.153030~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=359135a5429cc7b660ef9679da64a44870bd2916;p=tools%2Fdepanneur.git revert the change:Use the defalut uid:gid in /usr/bin/build when user uses gbs build with option --incremental option, it will change the the uid:gid of local git tree, because when incremental gbs build, it will mount local git tree to $BUILD_ROOT$TOPDIR", it change the owner ship to $BUILD_ROOT$TOPDIR", it will change local git tree. with default uid:gid 399:399 Change-Id: I00f0f86e4329bf58a4ed02a52fcc7b30b7b6aed3 Signed-off-by: biao716.wang --- diff --git a/depanneur b/depanneur index 0369363..eac2ed6 100755 --- a/depanneur +++ b/depanneur @@ -1993,8 +1993,7 @@ sub build_package { return -1; } push @args, "sudo /usr/bin/build"; - #Use the defalut uid:gid in /usr/bin/build - #push @args, "--uid $zuid:$zgid" if ($zuid != 0 && $zgid != 0); + push @args, "--uid $zuid:$zgid" if ($zuid != 0 && $zgid != 0); my $nprocessors = 2; if ($^O eq "linux") { $nprocessors = int(int(sysconf(SC_NPROCESSORS_ONLN))/int($MAX_THREADS));