@@ -1168,10 +1168,11 @@ def check_required_system_tool(
1168
1168
)
1169
1169
if executable in self .__checked_system_tools :
1170
1170
# If we already checked for this tool, the install instructions should match
1171
- assert instructions .fixit_hint () == self .__checked_system_tools [executable ].fixit_hint (), executable
1171
+ existing = self .__checked_system_tools [executable ]
1172
+ assert instructions .cheribuild_target == existing .cheribuild_target
1173
+ assert instructions .alternative == existing .alternative
1174
+ assert instructions .fixit_hint () == existing .fixit_hint (), f"mismatched instructions for { executable } "
1172
1175
return # already checked
1173
- assert instructions .cheribuild_target == cheribuild_target
1174
- assert instructions .alternative == alternative_instructions
1175
1176
self ._validate_cheribuild_target_for_system_deps (instructions .cheribuild_target )
1176
1177
if not shutil .which (str (executable )):
1177
1178
self .dependency_error (
@@ -1212,7 +1213,10 @@ def check_required_pkg_config(
1212
1213
)
1213
1214
if package in self .__checked_pkg_config :
1214
1215
# If we already checked for this pkg-config .pc file, the install instructions should match
1215
- assert instructions .fixit_hint () == self .__checked_pkg_config [package ].fixit_hint (), package
1216
+ existing = self .__checked_pkg_config [package ]
1217
+ assert instructions .cheribuild_target == existing .cheribuild_target
1218
+ assert instructions .alternative == existing .alternative
1219
+ assert instructions .fixit_hint () == existing .fixit_hint (), f"mismatched instructions for { package } "
1216
1220
return # already checked
1217
1221
self ._validate_cheribuild_target_for_system_deps (instructions .cheribuild_target )
1218
1222
try :
0 commit comments