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