Skip to content

Commit ba26246

Browse files
committed
Be less verbose on failure to verify existing config.guess
1 parent 73c703e commit ba26246

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

easybuild/easyblocks/generic/configuremake.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ def check_config_guess(config_guess):
9797
if config_guess_version != CONFIG_GUESS_VERSION:
9898
result = False
9999
tup = (config_guess, config_guess_version, CONFIG_GUESS_VERSION)
100-
print_warning("config.guess version at %s does not match expected version: %s vs %s" % tup, log=log)
100+
log.warning("config.guess version at %s does not match expected version: %s vs %s" % tup)
101101
elif config_guess_checksum != CONFIG_GUESS_SHA256:
102102
result = False
103103
tup = (config_guess, config_guess_checksum, CONFIG_GUESS_SHA256)
104-
print_warning("SHA256 checksum of config.guess at %s does not match expected checksum: %s vs %s" % tup,
105-
log=log)
104+
log.warning("SHA256 checksum of config.guess at %s does not match expected checksum: %s vs %s" % tup)
106105

107106
return result
108107

@@ -145,9 +144,9 @@ def obtain_config_guess(download_source_path=None, search_source_paths=None):
145144
cand_config_guess_path = os.path.join(download_source_path, sourcepath_subdir, config_guess)
146145
config_guess_url = CONFIG_GUESS_URL_STUB + CONFIG_GUESS_COMMIT_ID
147146
if not download_file(config_guess, config_guess_url, cand_config_guess_path):
148-
log.warning("Failed to download recent %s to %s", config_guess, cand_config_guess_path)
147+
print_warning("Failed to download recent %s to %s", config_guess, cand_config_guess_path, log=log)
149148
elif not check_config_guess(cand_config_guess_path):
150-
log.warning("Verification failed for file %s, not using it!", cand_config_guess_path)
149+
print_warning("Verification failed for file %s, not using it!", cand_config_guess_path, log=log)
151150
remove_file(cand_config_guess_path)
152151
else:
153152
config_guess_path = cand_config_guess_path

0 commit comments

Comments
 (0)