diff options
| author | Jerome Forissier <[email protected]> | 2025-07-24 11:12:40 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-07-29 17:00:07 -0600 |
| commit | 2babd34eacfb12f799f8d52a8729139041a18680 (patch) | |
| tree | 6e9a65e8bddc9184264897cfa5e508ae23788472 /tools | |
| parent | 3532f1f5edfc97c9dcea723cdeb732eda44bc669 (diff) | |
binman: bintool: use apt-get instead of apt
The 'apt' command is not meant to be used in scripts or tools. Please
see the man page [1] for details. Therefore, use 'apt-get' instead.
This avoids the following warning:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
[1] https://manpages.debian.org/bookworm/apt/apt.8.en.html#SCRIPT_USAGE_AND_DIFFERENCES_FROM_OTHER_APT_TOOLS
Signed-off-by: Jerome Forissier <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Bryan Brattlof <[email protected]>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/binman/bintool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/bintool.py b/tools/binman/bintool.py index 81872db377f..f46bb52a7b3 100644 --- a/tools/binman/bintool.py +++ b/tools/binman/bintool.py @@ -421,7 +421,7 @@ class Bintool: Returns: True, assuming it completes without error """ - args = ['sudo', 'apt', 'install', '-y', package] + args = ['sudo', 'apt-get', 'install', '-y', package] print('- %s' % ' '.join(args)) tools.run(*args) return True |
