Change-Id: I43b3c26b6177a1582b5cdb16aaabb4099c8c0474
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"
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){
#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");
}
}