Did i just made the fastest dependency checker in the world? (198 packages in 1.5 seconds)

Matthew Miller mattdm at mattdm.org
Mon Apr 9 21:38:41 UTC 2007


On Mon, Apr 09, 2007 at 11:34:23PM +0200, Mark wrote:
> also how are you doing your versioned-dep calculation? Are you calling
> >out to rpm for the rpm version comparisons?
> that`s not that hard at all.
> i just have a table with the package id, package provides/requires and the
> version of the requires/provides though this can use some tweaking.

What Seth is getting at is that this is harder than you think. Once you
start doing it in the complete way (which is required for correct answers),
you'll loose speed.


> how are you checking to see if the package foo-1.3-1 provides that
> >dependency or not?
> to put it simple:
> SELECT * FROM PROVIDES WHERE provide_id = '##' AND provide_name = 'foo-1.3-1

How do you know if version 1.3 is greater or less than epoch 1 version 1.2?

-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




More information about the devel mailing list