aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorastokes_rhn <astokes_rhn@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-08-02 21:43:47 +0000
committerastokes_rhn <astokes_rhn@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-08-02 21:43:47 +0000
commitb447a3090ded3fd359e6b8ddc8e22b6cdb83f492 (patch)
treee86c307571739d373c6c68ba9726781fc63db294 /src
parentc35084c19b3670d91fbcbe5f45d3c303670ee8c4 (diff)
downloadsos-b447a3090ded3fd359e6b8ddc8e22b6cdb83f492.tar.gz
merged diagnostic information
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@318 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src')
-rw-r--r--src/lib/sos/plugins/yum.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/sos/plugins/yum.py b/src/lib/sos/plugins/yum.py
index 474b0c54..16347763 100644
--- a/src/lib/sos/plugins/yum.py
+++ b/src/lib/sos/plugins/yum.py
@@ -26,6 +26,18 @@ class yum(sos.plugintools.PluginBase):
return True
return False
+ def diagnose(self):
+ # repo sanity checking
+ # TODO: elaborate/validate actual repo files, however this directory should
+ # be empty on RHEL 5+ systems.
+ try: rhelver = self.cInfo["policy"].pkgDictByName("redhat-release")[0]
+ except: rhelver = None
+
+ if rhelver == "5" or True:
+ if len(os.listdir('/etc/yum.repos.d/')):
+ self.addDiagnose("/etc/yum.repos.d/ contains additional repository "+
+ "information and can cause rpm conflicts.")
+
def setup(self):
# Pull all yum related information
self.addCopySpec("/etc/yum")