diff options
author | Jack Neely <jjneely@ncsu.edu> | 2010-09-13 17:49:18 +0000 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2010-09-13 13:05:28 -0500 |
commit | 13967e09623bd517a614a2525d8ba7b60eef237e (patch) | |
tree | a006bff823143067410d0a0d2587597c4672d3aa /src/lib/Client | |
parent | f20d70c90299726caff56c088c1abfd397cc1e45 (diff) | |
download | bcfg2-13967e09623bd517a614a2525d8ba7b60eef237e.tar.gz bcfg2-13967e09623bd517a614a2525d8ba7b60eef237e.tar.bz2 bcfg2-13967e09623bd517a614a2525d8ba7b60eef237e.zip |
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
Diffstat (limited to 'src/lib/Client')
-rw-r--r-- | src/lib/Client/Tools/YUMng.py | 9 |
1 files changed, 8 insertions, 1 deletions
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')] + \ |