On Tue, Nov 02, 2010 at 01:03:09PM -0000, lslezak@svn2.opensuse.org wrote:
Author: lslezak Date: Tue Nov 2 14:03:08 2010 New Revision: 62714
URL: http://svn.opensuse.org/viewcvs/yast?rev=62714&view=rev Log: - correctly display download progress in DownloadInAdvance libzypp mode (bnc#616708)
Ah, nice to see this fixed :-)
Added: trunk/packager/agents/etc_zypp_conf.scr
[...] But this reminds me that it is high time to replace the Ini Agent (and mostly all agents) with something more modern and maintained, namely Augeas (already used by zypper). See what it can parse (and write!) http://git.fedorahosted.org/git/?p=augeas.git;a=tree;f=lenses;h=60be35d5c8a5... (or rpm -ql augeas-lenses ) and how it can define macros for the regexes seen below http://git.fedorahosted.org/git/?p=augeas.git;a=blob;f=lenses/sep.aug;h=c499... http://git.fedorahosted.org/git/?p=augeas.git;a=blob;f=lenses/rx.aug;h=95df7... Anyone interested in playing with it? Of course it has scripting bindings so we can use it in the Lighter WebYaST.
+.etc.zypp_conf + +`ag_ini( + `IniAgent( "/etc/zypp/zypp.conf" , $[ + "options" : [ "no_nested_sections", "line_can_continue", "comments_last" ], + "comments": [ + "^[ \t]*$", // empty line + "^[ \t]*#.*$", // comment char + ], + "sections" : [ + $[ + "begin" : [ "^[ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*", "[%s]" ], + ] + ], + "params" : [ + $[ + "match" : [ "^[ \t]*([^=]*[^ \t=])[ \t]*=[ \t]*(.*[^ \t]|)[ \t]*$" , "%s=%s"], + ] + ] + ] + ) +) -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu