fix: do not check updates with dnf

This commit is contained in:
Amin Yahyaabadi 2022-07-10 17:20:36 -07:00
parent 7698fea0a5
commit f42bca4b35
6 changed files with 9 additions and 11 deletions

View File

@ -1,8 +1,6 @@
## base image
FROM fedora as base
RUN dnf -y check-update
# nodejs
RUN dnf -y install nodejs

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/setup_cpp.mjs vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@ import { InstallationInfo } from "./setupBin"
import { execSudo } from "../exec/sudo"
import { info, warning } from "../io/io"
let didUpdate: boolean = false
// let didUpdate: boolean = false
/** A function that installs a package using dnf */
export function setupDnfPack(name: string, version?: string): InstallationInfo {
@ -11,10 +11,10 @@ export function setupDnfPack(name: string, version?: string): InstallationInfo {
const dnf = "dnf"
if (!didUpdate) {
execSudo(dnf, ["-y", "check-update"])
didUpdate = true
}
// if (!didUpdate) {
// execSudo(dnf, ["-y", "check-update"])
// didUpdate = true
// }
if (version !== undefined && version !== "") {
try {