missing modules
authorAndrew Gaffney <agaffney@gentoo.org>
Sun, 29 Nov 2009 02:28:39 +0000 (20:28 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Sun, 29 Nov 2009 02:28:39 +0000 (20:28 -0600)
modules/catalyst/target/generic_stage.py
modules/catalyst/util.py

index 491c6fc2474adfb9376727dc6cfe272b42427cde..2c88ad5a954c6fa98edc8440901ab9d8611840e3 100644 (file)
@@ -906,9 +906,9 @@ class generic_stage_target(generic_target):
                """
                for x in self.settings.keys():
                        """ Sanitize var names by doing "s|/-.|_|g" """
-                       varname="clst_"+string.replace(x,"/","_")
-                       varname=string.replace(varname,"-","_")
-                       varname=string.replace(varname,".","_")
+                       varname = "clst_" + x.replace("/", "_")
+                       varname = varname.replace("-", "_")
+                       varname = varname.replace(".", "_")
                        if isinstance(self.settings[x], str):
                                """ Prefix to prevent namespace clashes """
                                #os.environ[varname]=self.settings[x]
index 503ac14e79a956cae742e6ea75dfc68a27ab16d3..a37cc0afafa39c652af7292c7d3d449235c465c1 100644 (file)
@@ -2,7 +2,7 @@
 Collection of utility functions for catalyst
 """
 
-import sys, traceback, os, re, time, shutil, glob
+import sys, traceback, os, re, time, shutil, glob, stat
 import catalyst
 from catalyst.error import *
 from catalyst.output import *