summaryrefslogtreecommitdiff
path: root/cpp/install/common/components.py
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2006-06-21 12:49:49 +0000
committerBrent Eagles <brent@zeroc.com>2006-06-21 12:49:49 +0000
commit3b6b317d2fb2624b5f4f6ec2ce4eb49db650baa7 (patch)
tree1901c53e636d4f95ffe9634a43360ece5364d3cf /cpp/install/common/components.py
parentAIX bug fix (diff)
downloadice-3b6b317d2fb2624b5f4f6ec2ce4eb49db650baa7.tar.bz2
ice-3b6b317d2fb2624b5f4f6ec2ce4eb49db650baa7.tar.xz
ice-3b6b317d2fb2624b5f4f6ec2ce4eb49db650baa7.zip
fixes
Diffstat (limited to 'cpp/install/common/components.py')
-rwxr-xr-xcpp/install/common/components.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/cpp/install/common/components.py b/cpp/install/common/components.py
index d9fa98535dc..2160e4aac18 100755
--- a/cpp/install/common/components.py
+++ b/cpp/install/common/components.py
@@ -80,7 +80,7 @@ class FileSpecWorker:
else:
raise FileSpecError("Line \'%s\' does not match filespec schema." % filename)
- def execute(self, fake = False):
+ def execute(self, defaults, fake = False):
"""Copy all of the specified files."""
recursiveIncludes = []
recursiveExcludes = []
@@ -206,6 +206,7 @@ class FileSpecWorker:
if f.startswith('f,'):
flatten = True
current = current[2:]
+ current = current % defaults
targetDirectory = self.dest
targetFile = os.path.basename(current)
@@ -294,7 +295,12 @@ def stage(filename, componentdir, stageDirectory, group, defaults):
continue
if not template == None:
mapping['name'] = current
- computedName = template % mapping
+ try:
+ computedName = template % mapping
+ except:
+ print "Mapping exception occurred with " + template + " and " + current
+ raise
+
logging.log(logging.DEBUG, 'Adding templatized name %s' % computedName)
worker.add(computedName)
else:
@@ -312,7 +318,7 @@ def stage(filename, componentdir, stageDirectory, group, defaults):
# XXX- fake is set to true while we are
# debugging.
#
- worker.execute(False)
+ worker.execute(defaults, False)
finally:
componentFile.close()