From: y0169.zhang Date: Sat, 11 Feb 2017 09:33:46 +0000 (+0900) Subject: Fix run ln error:operation not permitted in some OS X-Git-Tag: submit/devel/20190730.074511~43^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45f34e50b6148c619f07a4d8c7da97993effff04;p=tools%2Fdepanneur.git Fix run ln error:operation not permitted in some OS Change-Id: I43b3c26b6177a1582b5cdb16aaabb4099c8c0474 --- diff --git a/data/gbs b/data/gbs index 9394bc1..2da5921 100644 --- a/data/gbs +++ b/data/gbs @@ -6,10 +6,10 @@ ALL ALL=(ALL) NOPASSWD: /usr/bin/build ALL ALL=(ALL) NOPASSWD: /bin/cp *.conf */scratch.*/*.conf ALL ALL=(ALL) NOPASSWD: /bin/rm -f */.build.log ALL ALL=(ALL) NOPASSWD: /bin/mv */.build.log */log.txt -ALL ALL=(ALL) NOPASSWD: /bin/mv */*.rpm */*RPMS ALL ALL=(ALL) NOPASSWD: /bin/echo -n ALL ALL=(ALL) NOPASSWD: /usr/sbin/chroot */scratch.* ALL ALL=(ALL) NOPASSWD: /usr/bin/chroot */scratch.* +ALL ALL=(ALL) NOPASSWD: /usr/bin/ln */*.rpm */local/repos/* Defaults env_keep += "http_proxy" Defaults env_keep += "no_proxy" diff --git a/depanneur b/depanneur index 03e381c..5237de0 100755 --- a/depanneur +++ b/depanneur @@ -2006,7 +2006,7 @@ sub build_package { update_repo_with_rpms(\%srpmpaths, @srpms); if ($skip_srcrpm == 0){ foreach (@srpms) { - my_system ("ln -f $_ $srpm_repo_path"); + my_system ("sudo ln $_ $srpm_repo_path"); } } } elsif ($skip_srcrpm == 1){ @@ -2017,7 +2017,7 @@ sub build_package { #copy the new ones to local repo update_repo_with_rpms (\%rpmpaths, @rpms); foreach (@rpms) { - my_system ("ln -f $_ $rpm_repo_path"); + my_system ("sudo ln $_ $rpm_repo_path"); } }