diff options
author | Brent Eagles <brent@zeroc.com> | 2006-01-21 00:29:18 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2006-01-21 00:29:18 +0000 |
commit | a5e59fbcceab439b585fb74ccbf8a55e84f76fa7 (patch) | |
tree | 88b79ac6a8a6a7859826c6a51373a29da08f5b6d /cpp/install/common/components.py | |
parent | merging changes from R3_0_branch (diff) | |
download | ice-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-x | cpp/install/common/components.py | 5 |
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 |