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

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