Mailinglist Archive: zypp-devel (57 mails)

< Previous Next >
[zypp-devel] Re: libzypp - sat integration
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Tue, 15 Jan 2008 13:41:15 +0100
  • Message-id: <20080115124115.GA28968@xxxxxxx>
On Tue, Jan 15, Duncan Mac-Vicar Prett wrote:

- sat classes and pool string space

This is not an issue, but a desgn problem which makes thing unconfortable but
there is no "best" solution either.
Right now, sat wrapper classes, are only composed of the Id plus some helper
methods. For example, architecture as compatibleWith() method, etc.
Those classes Id are based on a global "pool". However while parsing (i am
talking from the POV of using the current code), you don't want to mess with
the global pool. But you want to use those nice classes instead of dealing
with dumb objects like as a string as an architecture (yes, to check
compatibility right now I have to promote the string to an Arch just to use
the helpful methods).

I told you that all the classes will contain static methods to access
those funcions without need to promote a char* to Arch:

Arch::comatibleWith( "foo", "baa" )

Edition::compare( "1-3", "2-4" )
Edition::match( "2", "2-4" )


Be patient until they are committed.


Michael Andres

Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0

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

< Previous Next >