<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 13 October 2016 at 10:45, Robert Yang <span dir="ltr">&lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;</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 &quot;copyhardlinktree(deploy_arch_<wbr>dir, arch_channel)&quot; does:<br>
&quot;cp -afl deploy_arch_dir/* arch_channel&quot;, while the deploy_arch_dir/* is<br>
expanded to &quot;deploy_arch_dir/pkg1 deploy_arch_dir/pkg2<br>
deploy_arch_dir/pkg3 ...&quot; which causes the &quot;Argument list too long&quot;,<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&#39;t* have this problem?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>