From 359135a5429cc7b660ef9679da64a44870bd2916 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Wed, 1 Dec 2021 20:57:16 +0900 Subject: [PATCH] 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 --- depanneur | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); -- 2.7.4