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~2^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a2d8c758edbc06568cf1f5b12528a2b2e89daeb;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 1e83e44..2f7c26f 100755 --- a/depanneur +++ b/depanneur @@ -2014,7 +2014,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){ @@ -2025,7 +2025,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"); } }