<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 13 October 2016 at 10:45, Robert Yang <span dir="ltr"><<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":5iq" class="a3s aXjCH m157bd7460cccb1df">This is because "copyhardlinktree(deploy_arch_<wbr>dir, arch_channel)" does:<br>
"cp -afl deploy_arch_dir/* arch_channel", while the deploy_arch_dir/* is<br>
expanded to "deploy_arch_dir/pkg1 deploy_arch_dir/pkg2<br>
deploy_arch_dir/pkg3 ..." which causes the "Argument list too long",<br>
change cwd to deploy_arch_dir can avoid the error.<br></div></blockquote></div><br>Would it be better to change the implementation of copyhardlinktree so that it *can't* have this problem?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>