From 13967e09623bd517a614a2525d8ba7b60eef237e Mon Sep 17 00:00:00 2001 From: Jack Neely Date: Mon, 13 Sep 2010 17:49:18 +0000 Subject: YUMng: Deal with any possible Yum verify exceptions git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6054 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/YUMng.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index 9ef0a3d14..ae93f4fae 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -485,7 +485,14 @@ class YUMng(Bcfg2.Client.Tools.PkgTool): for po in _POs: self.logger.debug(" %s" % str(po)) - vResult = self._verifyHelper(_POs[0]) + try: + vResult = self._verifyHelper(_POs[0]) + except Exception, e: + # Unknown Yum exception + self.logger.warning(" Verify Exception: %s" % str(e)) + package_fail = True + continue + # Now take out the Yum specific objects / modlists / unproblmes ignores = [ig.get('name') for ig in entry.findall('Ignore')] + \ [ig.get('name') for ig in inst.findall('Ignore')] + \ -- cgit v1.2.3-1-g7c22