Browse Source

build: make configure print statements consistent

I noticed that few of the print statements in configure have a leading
space with is not consistent with the rest of the file. Not sure if
this intentional or not so creating this commit just to bring it up
just in case.

PR-URL: https://github.com/nodejs/node/pull/12176

Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: mhdawson - Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
v6.x
Daniel Bevenius 8 years ago
committed by Myles Borins
parent
commit
c2c467e242
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 22
      configure

22
configure

@ -1033,15 +1033,15 @@ def configure_intl(o):
if nodedownload.candownload(auto_downloads, "icu"): if nodedownload.candownload(auto_downloads, "icu"):
nodedownload.retrievefile(url, targetfile) nodedownload.retrievefile(url, targetfile)
else: else:
print(' Re-using existing %s' % targetfile) print('Re-using existing %s' % targetfile)
if os.path.isfile(targetfile): if os.path.isfile(targetfile):
sys.stdout.write(' Checking file integrity with MD5:\r') print('Checking file integrity with MD5:\r')
gotmd5 = nodedownload.md5sum(targetfile) gotmd5 = nodedownload.md5sum(targetfile)
print(' MD5: %s %s' % (gotmd5, targetfile)) print('MD5: %s %s' % (gotmd5, targetfile))
if (md5 == gotmd5): if (md5 == gotmd5):
return targetfile return targetfile
else: else:
print(' Expected: %s *MISMATCH*' % md5) print('Expected: %s *MISMATCH*' % md5)
print('\n ** Corrupted ZIP? Delete %s to retry download.\n' % targetfile) print('\n ** Corrupted ZIP? Delete %s to retry download.\n' % targetfile)
return None return None
icu_config = { icu_config = {
@ -1179,7 +1179,7 @@ def configure_intl(o):
os.rename(tmp_icu, icu_full_path) os.rename(tmp_icu, icu_full_path)
shutil.rmtree(icu_tmp_path) shutil.rmtree(icu_tmp_path)
else: else:
print(' Error: --with-icu-source=%s did not result in an "icu" dir.' % \ print('Error: --with-icu-source=%s did not result in an "icu" dir.' % \
with_icu_source) with_icu_source)
shutil.rmtree(icu_tmp_path) shutil.rmtree(icu_tmp_path)
sys.exit(1) sys.exit(1)
@ -1195,8 +1195,8 @@ def configure_intl(o):
if localzip: if localzip:
nodedownload.unpack(localzip, icu_parent_path) nodedownload.unpack(localzip, icu_parent_path)
if not os.path.isdir(icu_full_path): if not os.path.isdir(icu_full_path):
print(' Cannot build Intl without ICU in %s.' % icu_full_path) print('Cannot build Intl without ICU in %s.' % icu_full_path)
print(' (Fix, or disable with "--with-intl=none" )') print('(Fix, or disable with "--with-intl=none" )')
sys.exit(1) sys.exit(1)
else: else:
print('* Using ICU in %s' % icu_full_path) print('* Using ICU in %s' % icu_full_path)
@ -1204,7 +1204,7 @@ def configure_intl(o):
# uvernum.h contains it as a #define. # uvernum.h contains it as a #define.
uvernum_h = os.path.join(icu_full_path, 'source/common/unicode/uvernum.h') uvernum_h = os.path.join(icu_full_path, 'source/common/unicode/uvernum.h')
if not os.path.isfile(uvernum_h): if not os.path.isfile(uvernum_h):
print(' Error: could not load %s - is ICU installed?' % uvernum_h) print('Error: could not load %s - is ICU installed?' % uvernum_h)
sys.exit(1) sys.exit(1)
icu_ver_major = None icu_ver_major = None
matchVerExp = r'^\s*#define\s+U_ICU_VERSION_SHORT\s+"([^"]*)".*' matchVerExp = r'^\s*#define\s+U_ICU_VERSION_SHORT\s+"([^"]*)".*'
@ -1214,7 +1214,7 @@ def configure_intl(o):
if m: if m:
icu_ver_major = m.group(1) icu_ver_major = m.group(1)
if not icu_ver_major: if not icu_ver_major:
print(' Could not read U_ICU_VERSION_SHORT version from %s' % uvernum_h) print('Could not read U_ICU_VERSION_SHORT version from %s' % uvernum_h)
sys.exit(1) sys.exit(1)
icu_endianness = sys.byteorder[0]; icu_endianness = sys.byteorder[0];
o['variables']['icu_ver_major'] = icu_ver_major o['variables']['icu_ver_major'] = icu_ver_major
@ -1241,8 +1241,8 @@ def configure_intl(o):
# this is the icudt*.dat file which node will be using (platform endianness) # this is the icudt*.dat file which node will be using (platform endianness)
o['variables']['icu_data_file'] = icu_data_file o['variables']['icu_data_file'] = icu_data_file
if not os.path.isfile(icu_data_path): if not os.path.isfile(icu_data_path):
print(' Error: ICU prebuilt data file %s does not exist.' % icu_data_path) print('Error: ICU prebuilt data file %s does not exist.' % icu_data_path)
print(' See the README.md.') print('See the README.md.')
# .. and we're not about to build it from .gyp! # .. and we're not about to build it from .gyp!
sys.exit(1) sys.exit(1)
# map from variable name to subdirs # map from variable name to subdirs

Loading…
Cancel
Save