Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: question about solveDependencies

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

Re: question about solveDependencies

Reply

Author theslack
Full name Jack Neely
Date 2006-10-05 21:28:13 PDT
Message Jared,

There is some code in there to work with PySQLite's iterable objects
that it returns. It doesn't return a normal list but a class that
acts like a list or that can be accessed like a dictionary. Many parts
of the code were sensitive to the difference so the results from
fetchall() are dumped into a real list there. The DB API 2.0 dictates
that fetchall returns a list like object so this code should not
impact other compliant DB APIs.

Otherwise, solveDependancy() returns a list of tuples containing n, v,
r, e, a, and size. Where the package idicated by the tuple will
provide the needed requirement that was passed in to
solveDependancy().

Jack

On 10/5/06, Jared Greenwald <jared.greenwald@​oracle.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I was attempting to install an entire update using current the other day
> and I ran into problems with solving deps. I tracked it down to the end
> of db.currentdb.solveDependencies where the result is read from the db
> query and then reversed and made into a dict of lists (I think).
> Anyway, it seems from what I'm seeing (and also from the comment just
> above that) that this code is for pysqlite. Anyway, in the end the
> function is returning a null set and I'm wondering why. More
> importantly, what is it supposed to be returning??
>
> Thanks,
> Jared
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFJVzku4z7Xptg​TUYRAhwSAKCa41rf1Wzp​Ixuiyh/9y+ern0B1AwCg​tEpn
> P56HO6esJ2fZ5ZI4Efrs4OY=
> =kPvU
> -----END PGP SIGNATURE-----
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@curr​ent.tigris.org
> For additional commands, e-mail: dev-help at current dot tigris dot org
>
>

« Previous message in topic | 2 of 3 | Next message in topic »

Messages

Show all messages in topic

question about solveDependencies jaredgreenwald Jared Greenwald 2006-10-05 12:28:36 PDT
     Re: question about solveDependencies theslack Jack Neely 2006-10-05 21:28:13 PDT
         Re: question about solveDependencies Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2006-10-05 22:02:06 PDT
Messages per page: