Blame SOURCES/sos-bz1067769-fix-anacron-checks.patch

629484
commit 4b20ae8823032918df1f1aee1c2b649d8c316f35
629484
Author: Bryn M. Reeves <bmr@redhat.com>
629484
Date:   Mon Mar 3 13:56:23 2014 +0000
629484
629484
    Replace package check with file check in anacron
629484
    
629484
    The anacron facility may be provided by packages named 'anacron',
629484
    'chronie-anacron' etc. They all use a common /etc/anacrontab file
629484
    so check for this instead.
629484
    
629484
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
629484
629484
diff --git a/sos/plugins/anacron.py b/sos/plugins/anacron.py
629484
index 04b0dcb..b337c18 100644
629484
--- a/sos/plugins/anacron.py
629484
+++ b/sos/plugins/anacron.py
629484
@@ -20,7 +20,9 @@ class Anacron(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
629484
 
629484
     plugin_name = 'anacron'
629484
 
629484
-    packages = ('anacron',)
629484
+    # anacron may be provided by anacron, cronie-anacron etc.
629484
+    # just look for the configuration file which is common
629484
+    files = ('/etc/anacrontab',)
629484
 
629484
     def setup(self):
629484
-        self.add_copy_spec("/etc/anacrontab")
629484
+        self.add_copy_specs(list(self.files))