mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
add centos stream support
Summary: Distro name wasn't matching and thus no rpms being installed or used Also improved the error message for unknown systems Reviewed By: farnz Differential Revision: D32139850 fbshipit-source-id: 438278094159f732f6b1de506490b89d2c9cd3f7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5927e8feba
commit
a8960cfe5f
@@ -366,7 +366,10 @@ class InstallSysDepsCmd(ProjectCmdBase):
|
|||||||
if packages:
|
if packages:
|
||||||
run_cmd(["apt", "install", "-y"] + packages)
|
run_cmd(["apt", "install", "-y"] + packages)
|
||||||
else:
|
else:
|
||||||
print("I don't know how to install any packages on this system")
|
host_tuple = loader.build_opts.host_type.as_tuple_string()
|
||||||
|
print(
|
||||||
|
f"I don't know how to install any packages on this system {host_tuple}"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@cmd("list-deps", "lists the transitive deps for a given project")
|
@cmd("list-deps", "lists the transitive deps for a given project")
|
||||||
|
@@ -99,7 +99,7 @@ class HostType(object):
|
|||||||
def get_package_manager(self):
|
def get_package_manager(self):
|
||||||
if not self.is_linux():
|
if not self.is_linux():
|
||||||
return None
|
return None
|
||||||
if self.distro in ("fedora", "centos"):
|
if self.distro in ("fedora", "centos", "centos stream"):
|
||||||
return "rpm"
|
return "rpm"
|
||||||
if self.distro.startswith(("debian", "ubuntu")):
|
if self.distro.startswith(("debian", "ubuntu")):
|
||||||
return "deb"
|
return "deb"
|
||||||
|
Reference in New Issue
Block a user