mirror of https://github.com/aminya/setup-cpp
fix: do not check updates with dnf
This commit is contained in:
parent
7698fea0a5
commit
f42bca4b35
|
@ -1,8 +1,6 @@
|
|||
## base image
|
||||
FROM fedora as base
|
||||
|
||||
RUN dnf -y check-update
|
||||
|
||||
# nodejs
|
||||
RUN dnf -y install nodejs
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue