Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Unified Diff: chrome/tools/build/win/create_installer_archive.py

Issue 10160011: Create VisualElementsManifest.xml from template -- install VisualElements in the version directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo typi typa Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
« chrome/installer/setup/install_unittest.cc ('K') | « chrome/installer/util/util_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698