<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><br>
</div></div>is os.getuid() and os.getgid() the correct value you want to use? I<br>
would expect root:root.<br>
<div class=""><div class="h5"><br></div></div></blockquote><div> </div><div>Yes, since <span style="font-size:12.8000001907349px">copy_license_files() function is executed within the pseudo environement (fakeroot), both </span>os.getuid() and os.getgid() return 0, which resembles to uid and gid of root user. Also, os.chown accepts integer values for 2nd and 3rd arguments.</div><div><br></div><div>Regards,</div><div>Jagadeesh</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">
&gt; &gt; &gt; &gt;               else:<br>
&gt; &gt; &gt; &gt;                   shutil.copyfile(src, dst)<br>
&gt; &gt; &gt; &gt;           except Exception as e:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Openembedded-core mailing list<br>
&gt; &gt; &gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; &gt; &gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Martin &#39;JaMa&#39; Jansa     jabber: <a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a><br>
&gt; &gt;<br>
<br>
--<br>
Martin &#39;JaMa&#39; Jansa     jabber: <a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a><br>
</div></div></blockquote></div><br></div></div>