Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 05e6ec0

Browse filesBrowse files
bnoordhuisaddaleax
authored andcommitted
build: make 'floating patch' message informational
Downgrade the 'Using floating patch' message that is emitted when a local patch is applied to the bundled ICU from a warning to a notice. There isn't anything the user can or should do so warning isn't appropriate. Instead of angry yellow use soothing green. Fixes: #26346 PR-URL: #26349 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent 8cf4170 commit 05e6ec0
Copy full SHA for 05e6ec0

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Collapse file

‎configure.py‎

Copy file name to clipboardExpand all lines: configure.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,10 @@ def warn(msg):
617617
# track if warnings occurred
618618
warn.warned = False
619619

620+
def info(msg):
621+
prefix = '\033[1m\033[32mINFO\033[0m' if os.isatty(1) else 'INFO'
622+
print('%s: %s' % (prefix, msg))
623+
620624
def print_verbose(x):
621625
if not options.verbose:
622626
return
@@ -1288,7 +1292,7 @@ def glob_to_var(dir_base, dir_sub, patch_dir):
12881292
patchfile = '%s/%s/%s' % (dir_base, patch_dir, file)
12891293
if os.path.isfile(patchfile):
12901294
srcfile = '%s/%s' % (patch_dir, file)
1291-
warn('Using floating patch "%s" from "%s"' % (patchfile, dir_base))
1295+
info('Using floating patch "%s" from "%s"' % (patchfile, dir_base))
12921296
list.append(srcfile)
12931297
break
12941298
return list

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.