<br><br><div class="gmail_quote">2012/5/28 Paul Eggleton <span dir="ltr"><<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="im">On Monday 28 May 2012 17:30:34 Giuseppe Condorelli wrote:<br>
> Well, I added ROOTFS_POSTPROCESS_COMMAND += "list_installed_packages ; " in<br>
> the image recipe I want to build.<br>
> Build went right but I don't know where to find the output the<br>
> list_installed_packages has provided.<br>
> Any suggestion? Am I wrong?<br>
<br>
</div>All list_installed_packages does is print a list of the packages; if you just<br>
add it to ROOTFS_POSTPROCESS_COMMAND the output will be going into the log file<br>
for the image task which is probably not what you want. If you wanted to<br>
proceed with this I think you'd need to redirect the output to some file<br>
somewhere - this is easily done by instead calling your own shell function and<br>
then calling list_installed_packages > path/to/some_output_file.txt within it.<br></blockquote><div>Thanks for the reply. What I'm not understanding is how I can invoke my shell function. Do you mean</div><div>I have to invoke it as append function of populate_rootfs one? What I really need is a way to query the rpm database</div>
<div>out from the build system, as we normally do with host packages.</div><div>I tried to have a standalone run of the rpm command the list_installed_packages invokes but (obviously) I got a long series of errors.</div>
<div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
However it sounds like buildhistory will do what you want here anyway.<br>
<br></blockquote><div>Well, that adds usefull information but I actually need the one above. </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Cheers,<br>
Paul<br>
<div class="HOEnZb"><div class="h5"> </div></div></blockquote><div>Thanks again,</div><div>Giuseppe </div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="HOEnZb"><div class="h5">
--<br>
<br>
Paul Eggleton<br>
Intel Open Source Technology Centre<br>
</div></div></blockquote></div><br>