From 5d10b9a536a1c37b8aba29760bbaf31ff3e027a5 Mon Sep 17 00:00:00 2001 From: Chad Austin Date: Thu, 25 Aug 2022 15:19:18 -0700 Subject: [PATCH] automation should use apt-get instead of apt Summary: Automation should use `apt-get` instead of `apt`, as `apt` does not have a stable interface. This fixes a warning when running getdeps.py on recent Ubuntu: ``` WARNING: apt does not have a stable CLI interface. Use with caution in scripts. ``` Reviewed By: fanzeyi Differential Revision: D39031719 fbshipit-source-id: 54a0fe51ce159174b089fc446e99a4ab5d69d626 --- build/fbcode_builder/getdeps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py index 8c270c0bc..02ae50374 100755 --- a/build/fbcode_builder/getdeps.py +++ b/build/fbcode_builder/getdeps.py @@ -414,7 +414,7 @@ class InstallSysDepsCmd(ProjectCmdBase): elif manager == "deb": packages = sorted(set(all_packages["deb"])) if packages: - cmd_args = ["apt", "install", "-y"] + packages + cmd_args = ["apt-get", "install", "-y"] + packages elif manager == "homebrew": packages = sorted(set(all_packages["homebrew"])) if packages: