| Index: chrome/tools/build/win/create_installer_archive.py
|
| diff --git a/chrome/tools/build/win/create_installer_archive.py b/chrome/tools/build/win/create_installer_archive.py
|
| index cab244c820c7a6b6caa3bd313a65932570ca2c80..78bc63b9e04a03fbc810391b2527ccf2dbf3a8fa 100755
|
| --- a/chrome/tools/build/win/create_installer_archive.py
|
| +++ b/chrome/tools/build/win/create_installer_archive.py
|
| @@ -117,9 +117,10 @@ def CopySectionFilesToStagingDir(config, section, staging_dir, build_dir):
|
| continue
|
|
|
| dst = os.path.join(staging_dir, config.get(section, option))
|
| - if not os.path.exists(dst):
|
| + files = glob.glob(os.path.join(build_dir, option))
|
| + if len(files) > 0 and not os.path.exists(dst):
|
| os.makedirs(dst)
|
| - for file in glob.glob(os.path.join(build_dir, option)):
|
| + for file in files:
|
| dst_file = os.path.join(dst, os.path.basename(file))
|
| if not os.path.exists(dst_file):
|
| shutil.copy(file, dst)
|
|
|