Blame SOURCES/0004-UpdateDB-autoload-etc-updatedb.conf-with-Simplevars.patch

3b98a7
From 898ea6cd04163b38aa59b0c3d9df23cf1837d425 Mon Sep 17 00:00:00 2001
3b98a7
From: Dominic Cleal <dcleal@redhat.com>
3b98a7
Date: Fri, 12 Jun 2015 10:46:57 +0100
3b98a7
Subject: [PATCH] UpdateDB: autoload /etc/updatedb.conf with Simplevars
3b98a7
3b98a7
updatedb.conf was loaded with Simplevars in Augeas 1.1.0, so continue
3b98a7
for compatibility.  Use aug_transform, augtool --transform etc. to use
3b98a7
the newer, different, UpdateDB lens.
3b98a7
---
3b98a7
 lenses/simplevars.aug | 1 +
3b98a7
 lenses/updatedb.aug   | 8 --------
3b98a7
 2 files changed, 1 insertion(+), 8 deletions(-)
3b98a7
3b98a7
diff --git a/lenses/simplevars.aug b/lenses/simplevars.aug
3b98a7
index ad9795f0..ff0602cc 100644
3b98a7
--- a/lenses/simplevars.aug
3b98a7
+++ b/lenses/simplevars.aug
3b98a7
@@ -41,6 +41,7 @@ let lns = (Util.empty | Util.comment | entry)*
3b98a7
 (* Variable: filter *)
3b98a7
 let filter = incl "/etc/kernel-img.conf"
3b98a7
            . incl "/etc/kerneloops.conf"
3b98a7
+           . incl "/etc/updatedb.conf"
3b98a7
            . incl "/etc/wgetrc"
3b98a7
            . incl "/etc/zabbix/*.conf"
3b98a7
            . incl "/etc/audit/auditd.conf"
3b98a7
diff --git a/lenses/updatedb.aug b/lenses/updatedb.aug
3b98a7
index 40cd26fb..c7309b16 100644
3b98a7
--- a/lenses/updatedb.aug
3b98a7
+++ b/lenses/updatedb.aug
3b98a7
@@ -22,8 +22,6 @@ About: Examples
3b98a7
 
3b98a7
 module UpdateDB =
3b98a7
 
3b98a7
-autoload xfm
3b98a7
-
3b98a7
 (* View: list
3b98a7
      A list entry *)
3b98a7
 let list =
3b98a7
@@ -41,9 +39,3 @@ let bool = [ key "PRUNE_BIND_MOUNTS" . Sep.space_equal
3b98a7
 (* View: lns
3b98a7
      The <UpdateDB> lens *)
3b98a7
 let lns = (Util.empty|Util.comment|list|bool)*
3b98a7
-
3b98a7
-(* Variable: filter
3b98a7
-      The filter *)
3b98a7
-let filter = incl "/etc/updatedb.conf"
3b98a7
-
3b98a7
-let xfm = transform lns filter
3b98a7
-- 
c941cc
2.24.1
3b98a7