summaryrefslogtreecommitdiffstats
path: root/chrome/tools/build/win
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 21:29:28 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 21:29:28 +0000
commitee704fb26e90761618c013c3e67a329e548f68f8 (patch)
tree849f637f0dcd140eec789dfa3b144ac3dfcbe620 /chrome/tools/build/win
parent78711ce43ea5cefa47f9b066b5cbafeaaf2641cc (diff)
downloadchromium_src-ee704fb26e90761618c013c3e67a329e548f68f8.zip
chromium_src-ee704fb26e90761618c013c3e67a329e548f68f8.tar.gz
chromium_src-ee704fb26e90761618c013c3e67a329e548f68f8.tar.bz2
Make create_installer_archive.py not error out on missing chrome_frame binaries.
Review URL: http://codereview.chromium.org/538002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/build/win')
-rwxr-xr-xchrome/tools/build/win/create_installer_archive.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/chrome/tools/build/win/create_installer_archive.py b/chrome/tools/build/win/create_installer_archive.py
index 87026bd..35b5437 100755
--- a/chrome/tools/build/win/create_installer_archive.py
+++ b/chrome/tools/build/win/create_installer_archive.py
@@ -86,6 +86,12 @@ def CopyAllFilesToStagingDir(config, distribution, staging_dir, output_dir):
CopySectionFilesToStagingDir(config, distribution.upper(),
staging_dir, output_dir)
+def IsChromeFrameFile(file):
+ for cf_file in ['npchrome_frame', 'chrome_launcher']:
+ if file.lower().find(cf_file) != -1:
+ return True
+ return False
+
def CopySectionFilesToStagingDir(config, section, staging_dir, output_dir):
"""Copies installer archive files specified in section to staging dir.
This method copies reads section from config file and copies all the files
@@ -99,7 +105,16 @@ def CopySectionFilesToStagingDir(config, section, staging_dir, output_dir):
if not os.path.exists(dst):
os.makedirs(dst)
for file in glob.glob(os.path.join(output_dir, option)):
- shutil.copy(file, dst)
+ if IsChromeFrameFile(file):
+ try:
+ shutil.copy(file, dst)
+ except IOError:
+ # TODO(robertshield): Temporary hack to work around problems building
+ # Chrome Frame binaries on non-Chrome Frame builders. Remove this
+ # asap.
+ print 'Error attempting to copy ' + file + ' to ' + dst
+ else:
+ shutil.copy(file, dst)
def GenerateDiffPatch(options, orig_file, new_file, patch_file):
if (options.diff_algorithm == "COURGETTE"):