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

Unified Diff: build_tools/download_pkg.py

Issue 1405283004: Reduce verbosity of build_repo.sh (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « build_tools/build_repo.sh ('k') | ports/pkg/nacl.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_tools/download_pkg.py
diff --git a/build_tools/download_pkg.py b/build_tools/download_pkg.py
index 3ec7e5c68a37b2c604b459d045dda2a88ab1f1be..c217e427bf43f32fd4074afbfdac224f4ce3de99 100755
--- a/build_tools/download_pkg.py
+++ b/build_tools/download_pkg.py
@@ -48,10 +48,11 @@ def DownloadFiles(pkg_dir, files, check_hashes=True, parallel=False):
for file_info in files:
basename = os.path.basename(file_info.url)
file_info.name = os.path.join(download_dir, basename)
+ file_info.rel_name = file_info.name[len(naclports.paths.NACLPORTS_ROOT)+1:]
filenames.append((file_info.name, file_info.url))
if os.path.exists(file_info.name):
if not check_hashes or CheckHash(file_info.name, file_info.md5):
- Log('Up-to-date: %s' % file_info.name)
+ Log('Up-to-date: %s' % file_info.rel_name)
continue
files_to_download.append(file_info)
@@ -59,7 +60,7 @@ def DownloadFiles(pkg_dir, files, check_hashes=True, parallel=False):
if check_hashes and not CheckHash(file_info.name, file_info.md5):
raise naclports.Error(
'Checksum failed: %s\nExpected=%s\nActual=%s' %
- (file_info.name, file_info.md5, GetHash(file_info.name)))
+ (file_info.rel_name, file_info.md5, GetHash(file_info.name)))
if not files_to_download:
Log('All files up-to-date')
« no previous file with comments | « build_tools/build_repo.sh ('k') | ports/pkg/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698