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
|
## base image
|
||||||
FROM fedora as base
|
FROM fedora as base
|
||||||
|
|
||||||
RUN dnf -y check-update
|
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
RUN dnf -y install 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 { execSudo } from "../exec/sudo"
|
||||||
import { info, warning } from "../io/io"
|
import { info, warning } from "../io/io"
|
||||||
|
|
||||||
let didUpdate: boolean = false
|
// let didUpdate: boolean = false
|
||||||
|
|
||||||
/** A function that installs a package using dnf */
|
/** A function that installs a package using dnf */
|
||||||
export function setupDnfPack(name: string, version?: string): InstallationInfo {
|
export function setupDnfPack(name: string, version?: string): InstallationInfo {
|
||||||
|
@ -11,10 +11,10 @@ export function setupDnfPack(name: string, version?: string): InstallationInfo {
|
||||||
|
|
||||||
const dnf = "dnf"
|
const dnf = "dnf"
|
||||||
|
|
||||||
if (!didUpdate) {
|
// if (!didUpdate) {
|
||||||
execSudo(dnf, ["-y", "check-update"])
|
// execSudo(dnf, ["-y", "check-update"])
|
||||||
didUpdate = true
|
// didUpdate = true
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (version !== undefined && version !== "") {
|
if (version !== undefined && version !== "") {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue