<br><div class="gmail_quote">2012/5/26 Maciej (Matchek) Bliziński <span dir="ltr"><<a href="mailto:maciej@opencsw.org" target="_blank">maciej@opencsw.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/5/25 Yann Rouillard <<a href="mailto:yann@pleiades.fr.eu.org">yann@pleiades.fr.eu.org</a>>:<br>
<div class="im">> Do you need some help on this ?<br>
<br>
</div>I could definitely use help! In this particular case, the code<br>
concerning the system files is here:<br>
<br>
<a href="http://sourceforge.net/apps/trac/gar/browser/csw/mgar/gar/v2/lib/python/system_pkgmap.py#L77" target="_blank">http://sourceforge.net/apps/trac/gar/browser/csw/mgar/gar/v2/lib/python/system_pkgmap.py#L77</a><br>
<br>
It reads /var/sadm/install/contents and saves pickled data to disk. We<br>
need to either create a fake /var/sadm/install/contents file from IPS,<br>
or add code to system_pkgmap.py to read from IPS directly. </blockquote><div><br></div><div>I suppose it would be better to read directly from IPS and avoid an additional conversion step.</div><div><br></div><div>We can extract the same kind of informations from IPS using the following command:</div>
<div>
<p> pkg contents -o path,<a href="http://action.name">action.name</a>,mode,owner,group,<a href="http://pkg.name">pkg.name</a> -t dir,file,hardlink,link</p><p>(however this interface is not guaranteed to be stable)</p>
</div><div>I can try to work on that but I have several questions:</div><div><br></div><div> - the package name does have the same format (ex: SUNWbzip -> compress/bzip2). Can it lead to some problem ?</div><div>At least the opencsw.PkgnameToCatName seems to work for svr4 package name only.</div>
<div><br></div><div> - reading at the code ( <a href="http://sourceforge.net/apps/trac/gar/browser/csw/mgar/gar/v2/lib/python/system_pkgmap.py#L470">http://sourceforge.net/apps/trac/gar/browser/csw/mgar/gar/v2/lib/python/system_pkgmap.py#L470</a> ) it seems that, in each /var/sadm/install/contents line, only f_path is really important, but you also save the raw line. Is raw line information used elsewhere ? </div>
<div><br></div><div>Yann</div><div> </div></div>