summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/Pacman.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-06-15 14:15:52 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-06-15 14:15:52 -0500
commit7be5239be45d6ee52d0b80d2a5993d3bdb6b933b (patch)
treeede82277589dd5ec980c0dee8490252255f48d29 /src/lib/Client/Tools/Pacman.py
parenta1bc75c200fb9237ecc0dd5ccd5b8bf94214cf4b (diff)
downloadbcfg2-7be5239be45d6ee52d0b80d2a5993d3bdb6b933b.tar.gz
bcfg2-7be5239be45d6ee52d0b80d2a5993d3bdb6b933b.tar.bz2
bcfg2-7be5239be45d6ee52d0b80d2a5993d3bdb6b933b.zip
Client Tools: Add PY3K compatibility
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Client/Tools/Pacman.py')
-rw-r--r--src/lib/Client/Tools/Pacman.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/Pacman.py b/src/lib/Client/Tools/Pacman.py
index 082897934..c8c05061c 100644
--- a/src/lib/Client/Tools/Pacman.py
+++ b/src/lib/Client/Tools/Pacman.py
@@ -78,5 +78,6 @@ class Pacman(Bcfg2.Client.Tools.PkgTool):
try:
self.logger.debug("Running : %s -S %s" % (self.pkgtool, pkgline))
self.cmd.run("%s -S %s" % (self.pkgtool, pkgline))
- except Exception, e:
+ except Exception:
+ e = sys.exc_info()[1]
self.logger.error("Error occurred during installation: %s" % e)