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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux