aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2009-11-28 20:28:39 -0600
committerAndrew Gaffney <agaffney@gentoo.org>2009-11-28 20:28:39 -0600
commit75f36846ef33057ee60b0cd30541348013ed7aaa (patch)
tree93e52f3f0a78f68a67b149d5c66dda6d42753e11
parentmove rsplit() call to assignment instead of return (diff)
downloadcatalyst-75f36846ef33057ee60b0cd30541348013ed7aaa.tar.gz
catalyst-75f36846ef33057ee60b0cd30541348013ed7aaa.tar.bz2
catalyst-75f36846ef33057ee60b0cd30541348013ed7aaa.zip
missing modules
-rw-r--r--modules/catalyst/target/generic_stage.py6
-rw-r--r--modules/catalyst/util.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/catalyst/target/generic_stage.py b/modules/catalyst/target/generic_stage.py
index 491c6fc2..2c88ad5a 100644
--- a/modules/catalyst/target/generic_stage.py
+++ b/modules/catalyst/target/generic_stage.py
@@ -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]
diff --git a/modules/catalyst/util.py b/modules/catalyst/util.py
index 503ac14e..a37cc0af 100644
--- a/modules/catalyst/util.py
+++ b/modules/catalyst/util.py
@@ -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 *