summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-05-27 15:36:46 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-05-27 15:36:46 +0000
commit722968d7d615e749a844e8ee69c45983f392cb97 (patch)
treebc7fb6376e4b5caff1db29ee0f151acc01e9b842
parent9d4abc43fb2896d8ae1edf107e0b8c5fd5c4e038 (diff)
downloadbcfg2-722968d7d615e749a844e8ee69c45983f392cb97.tar.gz
bcfg2-722968d7d615e749a844e8ee69c45983f392cb97.tar.bz2
bcfg2-722968d7d615e749a844e8ee69c45983f392cb97.zip
Add back python 2.3 fixes for {RPM,YUM}ng
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5258 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Tools/RPMng.py6
-rw-r--r--src/lib/Client/Tools/YUMng.py6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/RPMng.py b/src/lib/Client/Tools/RPMng.py
index 4025a2cbb..eb7ad527b 100644
--- a/src/lib/Client/Tools/RPMng.py
+++ b/src/lib/Client/Tools/RPMng.py
@@ -8,6 +8,12 @@ import rpm
import rpmtools
import Bcfg2.Client.Tools
+# Fix for python2.3
+try:
+ set
+except NameError:
+ from sets import Set as set
+
class RPMng(Bcfg2.Client.Tools.PkgTool):
'''Support for RPM packages'''
name = 'RPMng'
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py
index 3d6394320..5020d2301 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -9,6 +9,12 @@ import yum
import Bcfg2.Client.XML
import Bcfg2.Client.Tools.RPMng
+# Fix for python2.3
+try:
+ set
+except NameError:
+ from sets import Set as set
+
YAD = True
CP = ConfigParser.ConfigParser()
try: