mirror of
https://github.com/systemd/systemd
synced 2024-09-16 06:43:18 +00:00
ukify: Fix tools detection if --tools was not passed
In 789a642738
llvm-objcopy was given
higher priority over objcopy, but this would only work if --tools was
also passed.
This commit is contained in:
parent
833504f061
commit
c8add4c2e8
|
@ -16,6 +16,7 @@ import os
|
|||
import pathlib
|
||||
import re
|
||||
import shlex
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import typing
|
||||
|
@ -341,7 +342,10 @@ def find_tool(name, fallback=None, opts=None):
|
|||
if tool.exists():
|
||||
return tool
|
||||
|
||||
return fallback or name
|
||||
if shutil.which(name) is not None:
|
||||
return name
|
||||
|
||||
return fallback
|
||||
|
||||
|
||||
def combine_signatures(pcrsigs):
|
||||
|
|
Loading…
Reference in a new issue