Mailinglist Archive: zypp-devel (102 mails)
| < Previous | Next > |
Re: [zypp-devel] sat-solver and solvable:mediadir
- From: Jan Blunck <jblunck@xxxxxxx>
- Date: Fri, 13 Mar 2009 12:10:03 +0100
- Message-id: <20090313111003.GT23737@xxxxxxxxxxxxxxx>
On Fri, Mar 13, Michael Schroeder wrote:
Still this needs to be fixed in the bindings than. Getting the value of an
existing attribute should return None (in the Python case) when the attibutes
value is void.
Thanks,
Jan
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
On Fri, Mar 13, 2009 at 11:45:47AM +0100, Jan Blunck wrote:
I found out that the satsolver Python bindings return a bool object ("True")
if solvable:mediadir is not existing in the solv file.
Still this needs to be fixed in the bindings than. Getting the value of an
existing attribute should return None (in the Python case) when the attibutes
value is void.
Is solvable:mediadir a required field and therefore a bug in repo2solv?
No. You're not really supposed to access it, you should use
solvable_get_location() to retrieve the location.
(It's not available in the bindings, though. Too bad.)
From looking at solvable_get_location() I see that this is basically what I donow as a workaround.
Thanks,
Jan
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |