Mailinglist Archive: zypp-devel (102 mails)

< Previous Next >
Re: [zypp-devel] Python Bindings and RepoInfo.baseUrls()
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Thu, 12 Mar 2009 15:09:01 +0100
  • Message-id: <20090312140901.GA25359@xxxxxxxxxxxxx>
* Jan Blunck <jblunck@xxxxxxx> [Mar 12. 2009 15:00]:
On Thu, Mar 12, Klaus Kaempf wrote:

* Jan Blunck <jblunck@xxxxxxx> [Mar 11. 2009 15:55]:
On Tue, Mar 10, Jan Blunck wrote:

I have the following example:

This is not related to the python part of the bindings. The same example
in
ruby is also broken. Basically the std::set stuff for the Url class seems
to
be odd. I'm neither able to append nor to insert new Url objects.

This seems to be deep inside swig/libzypp/C++ and I have no idea how
to fix this.

I think I found the problem. It seems to be a namespace problem. Here is a
patch that fixes the issue. I also added a testcase for the RepoInfo class.

At the same time I extended the class by equivalents for dumpOn() and
friends. I'm usure if they are really necessary. At least the original methods
need to be ignored because of the std:ostream arguments.

Comments?

Great, thanks for your fix.

Pushed to libzypp-bindings HEAD.

Klaus
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >