Mailinglist Archive: zypp-devel (102 mails)

< Previous Next >
Re: [zypp-devel] Augeas for libzypp and zypper?
  • From: "Duncan Mac-Vicar P." <dmacvicar@xxxxxxx>
  • Date: Tue, 10 Mar 2009 14:37:41 +0100
  • Message-id: <49B66D25.2000204@xxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jan Kupec wrote:
Note that just writing lenses for zypp without touching zypp itself can
be beneficial, too.


I think we should link libzypp with augeas for various reasons.

- - I would like to give some love to ZConfig. Its design won't scale
anymore, by adding a setter/getter to every new option, but I would like
something more similar to KDE's KConfig ( config.writeBoolean("myopt",
true ) ) ... with the type safety of SolvAttr ( enum -> string mapping )
plus some way of specifying declaring available options and their type,
which at least could be checked at runtime... Michael, do you have any
ideas on how this can be done?

This class could then use the thin Augeas wrapper Jano has in his
experimental zypper branch, handle stuff like caching the values.. and
be the base for the specific ZYpp and zypper config classes that would
declare their own options.

zypper already will have a nice feature be using augeas. Augeas allow to
read comments, and Jano's wrapper will allow for zypper help to show the
comments of an option during help, allowing us to maintain the options
in the example config itself. It could even show comments for a
repository if libzypp reads those with augeas too.

Duncan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkm2bSUACgkQzR62qWZ+QtE8HQCgpq2yUtW+yKibzORas+0iDqh3
RUcAn1B06xxrvDYFJ/Uxn6qqXFxCkkDf
=pHTr
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References