Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: some help with deps

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

current
Discussion topic

Back to topic list

Re: some help with deps

Reply

Author theslack
Full name Jack Neely
Date 2006-10-06 19:49:44 PDT
Message Jared,

Trying to duplicate your solveDependancies() call I get this in my logs:

Oct 07 00:44:04 TRACE:
/home/slack/current/​current/db/currentdb​.py:solveDependancy(​{'unknown':
'/usr/share/dict/words', 'arch': 'i686-redhat-linux', 'label':
'rhel-i386-ws-4'})
Oct 07 00:44:21 DEBUG: up2date.solveDependency is returning [['words',
'3.0', '3', '', 'noarch', '1475993']]
Oct 07 00:44:21 DEBUG2: API Result = {'/usr/share/dict/words':
[['words', '3.0', '3', '', 'noarch', '1475993']]}

Note that the result is a dict of the unknowns passed to
solveDependancies() where each key references a list of lists/tuples
each defining one package. You have a dict in your output.

Also note that the value None is not marshallable by default and is
not allowed in the RHN protocol at all. You can make XMLRPC marshal
the None value, but you are then not following the protocol and the
up2date client will not be happy. Don't do that. :-)

Jack

On 10/6/06, Jared Greenwald <jared.greenwald@​oracle.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ok, I'm really not getting this properly or something...
>
> Here's the API log statement of what's being returned from an
> up2date.solveDependencies call. In this particular case, I'm trying to
> install stunnel, which needs /usr/share/dict/words, which is provided by
> package words.
>
> Oct 06 13:38:51 DEBUG2: API Result = {'/usr/share/dict/words': [{'arch':
> 'noarch',
> 'epoch': None,
> 'name': 'words',
> 'release': '3',
> 'size': '1475745',
> 'version': '3.0'}]}
>
> Clearly this is the correct package information, but apparently not in
> the correct format. On the up2date client side, I put some debugging
> into the rpc routine that actually connects with the server so that it
> would print out whatever was returned from the rpc call. Look in
> /usr/share/rhn/up2da​te_client/rpcServer.​py to see the actual call (there
> is some logic in there about how to handle if None is returned). Here's
> what I'm getting:
>
> Connecting via https to ca-test43.us.oracle.com
> ret is null: None
> Connecting via https to ca-test43.us.oracle.com
> ret is null: None
> Connecting via https to ca-test43.us.oracle.com
> ret is null: None
> Connecting via https to ca-test43.us.oracle.com
> ret is null: None
> Connecting via https to ca-test43.us.oracle.com
>
> The question is, what the heck is causing this amount of disconnect. I
> don't know if I've just got the wrong format being sent back, and
> therefore, the rpc is just not recognizing it - but something's amiss...
>
> It would be greatly helpful if someone could post a similar line to the
> API log line above for comparison.
>
> Thanks in advance...
>
> - -Jared
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFJsA0u4z7Xptg​TUYRAsiQAJ94D2E5Xyqk​/oIBtLbUiR6sDHSZFgCf​cZKK
> B1DUnCBxnxpYldfCgjRLHoY=
> =pGD0
> -----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

some help with deps jaredgreenwald Jared Greenwald 2006-10-06 13:44:36 PDT
     Re: some help with deps theslack Jack Neely 2006-10-06 19:49:44 PDT
         Re: some help with deps jaredgreenwald Jared Greenwald 2006-10-06 20:36:59 PDT
Messages per page: