revert the change:Use the defalut uid:gid in /usr/bin/build 31/267331/1
authorbiao716.wang <biao716.wang@samsung.com>
Wed, 1 Dec 2021 11:57:16 +0000 (20:57 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Wed, 1 Dec 2021 11:57:20 +0000 (20:57 +0900)
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 <biao716.wang@samsung.com>
depanneur

index 0369363..eac2ed6 100755 (executable)
--- 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));