summaryrefslogtreecommitdiff
path: root/cpp/install/common/components.py
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2006-01-21 00:29:18 +0000
committerBrent Eagles <brent@zeroc.com>2006-01-21 00:29:18 +0000
commita5e59fbcceab439b585fb74ccbf8a55e84f76fa7 (patch)
tree88b79ac6a8a6a7859826c6a51373a29da08f5b6d /cpp/install/common/components.py
parentmerging changes from R3_0_branch (diff)
downloadice-a5e59fbcceab439b585fb74ccbf8a55e84f76fa7.tar.bz2
ice-a5e59fbcceab439b585fb74ccbf8a55e84f76fa7.tar.xz
ice-a5e59fbcceab439b585fb74ccbf8a55e84f76fa7.zip
merging revisions from R3_0_branch
Diffstat (limited to 'cpp/install/common/components.py')
-rwxr-xr-xcpp/install/common/components.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/install/common/components.py b/cpp/install/common/components.py
index 357a893706c..d9fa98535dc 100755
--- a/cpp/install/common/components.py
+++ b/cpp/install/common/components.py
@@ -218,7 +218,10 @@ class FileSpecWorker:
s = os.path.join(self.source, current)
d = os.path.join(targetDirectory, targetFile)
try:
- shutil.copy2(s, d)
+ if os.path.isdir(s):
+ os.mkdir(d)
+ else:
+ shutil.copy2(s, d)
except IOError, e:
logging.info('Copying %s to %s failed: %s' % (s, d, str(e)))
raise