<div>thanx for that.</div>
<div>at the moment i`ve used this to do the rpm stuff: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://cekirdek.uludag.org.tr/~meren/php_rpm/" target="_blank">http://cekirdek.uludag.org.tr/~meren/php_rpm/
</a></div>
<div>i`m using that to get all the stuff out of the rpm files.</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">PHP5 is now also quite good at parsing XML, so playing with repodata<br>shouldn&#39;t be hard either.</blockquote>

<div>&nbsp;</div>
<div>i`m not sure if it would be wise (for me) to try and improve the existing repodata structure.. also it`s just to big for what it provides.. and i want to do all the stuff my way first before i improve other things.</div>

<div>&nbsp;</div>
<div>And i think i found a way to bypass rpm`s off way of checking for version numbers.</div>
<div>&nbsp;</div>
<div>imagine you have:</div>
<div>a = 1001001</div>
<div>b = 1002001</div>
<div>&nbsp;</div>
<div>1.1b2 = 1.1[1002001]2 == right for rpm`s version check? (i think it is)</div>
<div>1.b2 = 1.[1002001] == right for rpm`s version check? (i think it is)</div>
<div>&nbsp;</div>
<div>in this case 1.1b2 ranks higher than 1.b2(rare that it even exists but well.. you gotta count it in)</div>
<div>&nbsp;</div>
<div>Now what am i doing?</div>
<div>quite simple. version stuff can`t handle anything different than numbers so i need to convert</div>
<div>alphabetic things to numbers and it MUST start other than 0 and and other than 0 otherwise</div>
<div>RPM will is gonna play tricks with me.</div>
<div>&nbsp;</div>
<div>if this is possible it can be even as fast as the current measured speed (0.001 second)</div>
<div>and why? well.. i just need to recalculate all versions in a php/c/c++ and put it in another</div>
<div>table or column (column would be best in this case). than i can just change the query slightly</div>
<div>and it`s checking on rpm compatible version numbers ^_^</div>
<div>&nbsp;</div>
<div>now for another rpm version number question.</div>
<div>&nbsp;</div>
<div>imagine the following 2 versions:</div>
<div>0.2.2</div>
<div>1.0.3</div>
<div>&nbsp;</div>
<div>with rpm will the versions get (because it`s striping zerro`s):</div>
<div>2.2</div>
<div>1.3</div>
<div>??</div>
<div>&nbsp;</div>
<div>or or is it just striping out zerro`s when there is more than 1 zerro?</div>
<div>i think it won`t change the initial versions in this case.</div>
<div>&nbsp;</div>
<div>or when the length is moer than 1 character (i didn`t had a</div>
<div>change to look over the rpmlib coding)</div>
<div>&nbsp;</div>
<div>some more info on the versions like how they are calculated</div>
<div>and in which case would be helpfull.. or a&nbsp;link to the file</div>
<div>that i need to look through</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">2007/4/11, Matthias Saou &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:thias@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net" target="_blank">thias@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
</a>&gt;: </span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Mark wrote :<br><br>&gt; you can say that (last part) again... it could take a long while till it`s<br>&gt; done.. considering that i just know what pointers are in c++ and besides the 
<br>&gt; pointers i know a few other basics but nothing interesting enough to be able<br>&gt; to make this stuff in c++ and that`s the exact reason why i`m first making<br>&gt; it in php.<br><br>Then you definitely want to start by coding a PHP module in C which 
<br>would wrap around rpmlib. You could then map rpm files to objects in PHP<br>to get all the info you need from the rpm files (requires and provides<br>as well as file lists for instance) and obviously create useful<br>
functions, of which the first one could be to compare versions... and<br>would be 100% accurate since it would be using rpm&#39;s internal version<br>comparison.<br><br>PHP5 is now also quite good at parsing XML, so playing with repodata 
<br>shouldn&#39;t be hard either.<br><br>Good luck! :-)<br><br>Matthias<br><br>--<br>Clean custom Red Hat Linux rpm packages : <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://freshrpms.net/" target="_blank">
http://freshrpms.net/</a><br>Fedora Core release 6 (Zod) - Linux kernel 2.6.20-1.2943.fc6<br>Load : 0.59 0.57 0.55<br><br>--<br>fedora-devel-list mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fedora-devel-list@redhat.com" target="_blank">
fedora-devel-list@redhat.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/fedora-devel-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-devel-list
</a><br></blockquote></div><br>