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

Matthew Miller mattdm at mattdm.org
Tue Apr 10 01:11:30 UTC 2007


On Tue, Apr 10, 2007 at 12:13:31AM +0200, Mark wrote:
> > 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.
> is there anything more to check besides the requires and provides with the
> versions?

All sorts of stuff. Check the yum source code. For starters the other things
mentioned already:, epochs, and the fact that all packages are considered to
be providing all files they contain, even with dependencies. But consider
this too: RPM's notion of version comparison is a bit unintuitive when it
comes to mixing letters and numbers -- is 1.2b3 greater or less than 1.20?
What about 1.2.0? And for that matter, is 1.9 higher than 1.10?


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




More information about the fedora-devel-list mailing list