Remove support for Ubuntu 20.04 and Debian 11.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2024-03-25 14:31:39 -07:00
parent ce075fec6c
commit 70914b0475
30 changed files with 49 additions and 204 deletions

View File

@@ -8,7 +8,7 @@ from urllib.request import urlopen
import yaml
from .zulip_tools import parse_os_release, run
from .zulip_tools import run
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
ZULIP_SRV_PATH = "/srv"
@@ -89,11 +89,6 @@ def install_puppet_module(
tarball.write(tarball_content)
tarball.flush()
# This is to suppress Puppet warnings with ruby 2.7.
distro_info = parse_os_release()
puppet_env = os.environ.copy()
if (distro_info["ID"], distro_info["VERSION_ID"]) in [("ubuntu", "20.04")]:
puppet_env["RUBYOPT"] = "-W0"
run(
[
"puppet",
@@ -104,5 +99,4 @@ def install_puppet_module(
tarball.name,
"--ignore-dependencies",
],
env=puppet_env,
)