From 5a19017d21e192a3a2d7d899c533ac6da4593b01 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Thu, 23 Feb 2012 12:20:40 +0100 Subject: [PATCH] Fix augeas lense enforcing a non empty anonymous section (bnc#748144) --- src/utils/zypper.aug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/zypper.aug b/src/utils/zypper.aug index 757ca76..b51db06 100644 --- a/src/utils/zypper.aug +++ b/src/utils/zypper.aug @@ -35,7 +35,7 @@ module ZYpper = let empty = [ eol ] (* Deletes optional whitespace and stores the rest 'till the end of line *) - let store_to_eol = del_opt_ws " " . store /([^ \t\n].*[^ \t\n])/ + let store_to_eol = del_opt_ws " " . store /(.*[^ \t\n])?/ (* Keyword regex. @@ -71,7 +71,7 @@ module ZYpper = (* The lens matching and mapping the whole file *) - let lns = section_anon . section+ + let lns = section_anon? . section+ (* Filter for the xfm transformation. -- 2.7.4