Mailinglist Archive: zypp-devel (102 mails)

< Previous Next >
Re: [zypp-devel] sat-solver and solvable:mediadir
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Fri, 13 Mar 2009 11:54:03 +0100
  • Message-id: <20090313105403.GA29097@xxxxxxx>
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. This happens with the
solv files generated from buildservice repositories like
http://download.opensuse.org/repositories/home:/janblunck/openSUSE_Factory/.

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.)

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
References