From f4142364bd97dd4f5d9070a2de10cd02ab93ab15 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 30 Nov 2007 18:53:54 +0000 Subject: Handle weird importer behavior on python2.3 [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4012 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/YUMng.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/Client') diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index d8d3a9d8b..79ae6fbf0 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -20,6 +20,9 @@ try: except: pass +if not hasattr(Bcfg2.Client.Tools.RPMng, 'RPMng'): + raise ImportError + class YUMng(Bcfg2.Client.Tools.RPMng.RPMng): '''Support for Yum packages''' pkgtype = 'yum' -- cgit v1.2.3-1-g7c22