summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/YUMng.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-11-30 18:53:54 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-11-30 18:53:54 +0000
commitf4142364bd97dd4f5d9070a2de10cd02ab93ab15 (patch)
treeeda2cea96f99830ddaa0c44876c0cf1274c97cb6 /src/lib/Client/Tools/YUMng.py
parent4449ea987131a813d714f0e5b125129b7fd2b388 (diff)
downloadbcfg2-f4142364bd97dd4f5d9070a2de10cd02ab93ab15.tar.gz
bcfg2-f4142364bd97dd4f5d9070a2de10cd02ab93ab15.tar.bz2
bcfg2-f4142364bd97dd4f5d9070a2de10cd02ab93ab15.zip
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
Diffstat (limited to 'src/lib/Client/Tools/YUMng.py')
-rw-r--r--src/lib/Client/Tools/YUMng.py3
1 files changed, 3 insertions, 0 deletions
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'