Skip to content

Commit 71bb648

Browse files
authored
Merge pull request #998 from ocaml/disable-man-db-auto-update
Disable man-db auto update
2 parents c2ac556 + 3b34913 commit 71bb648

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

dist/index.cjs

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/setup-ocaml/src/unix.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,20 @@ async function skipPackageManagement() {
4545
return RUNNER_ENVIRONMENT === "self-hosted" || isContainerRunner;
4646
}
4747

48+
async function disableManDbAutoUpdate() {
49+
await exec("sudo", ["debconf-communicate"], {
50+
input: Buffer.from("set man-db/auto-update false"),
51+
});
52+
await exec("sudo", ["dpkg-reconfigure", "man-db"]);
53+
}
54+
4855
export async function installUnixSystemPackages() {
4956
if (await skipPackageManagement()) {
5057
return;
5158
}
5259
switch (PLATFORM) {
5360
case "linux": {
61+
await disableManDbAutoUpdate();
5462
const optionalDependencies =
5563
await retrieveInstallableOptionalDependencies([
5664
"darcs",

0 commit comments

Comments
 (0)