mirror of https://github.com/aminya/setup-cpp
fix: fix setupBin with dnf
This commit is contained in:
parent
f42bca4b35
commit
5ca7197035
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
|
@ -8,6 +8,8 @@ import { isGitHubCI } from "../env/isCI"
|
||||||
import { setupAptPack } from "./setupAptPack"
|
import { setupAptPack } from "./setupAptPack"
|
||||||
import { setupPacmanPack } from "./setupPacmanPack"
|
import { setupPacmanPack } from "./setupPacmanPack"
|
||||||
import { isArch } from "../env/isArch"
|
import { isArch } from "../env/isArch"
|
||||||
|
import { hasDnf } from "../env/hasDnf"
|
||||||
|
import { setupDnfPack } from "./setupDnfPack"
|
||||||
|
|
||||||
/** A type that describes a package */
|
/** A type that describes a package */
|
||||||
export type PackageInfo = {
|
export type PackageInfo = {
|
||||||
|
@ -94,6 +96,10 @@ export async function setupBin(
|
||||||
setupPacmanPack("unzip")
|
setupPacmanPack("unzip")
|
||||||
setupPacmanPack("tar")
|
setupPacmanPack("tar")
|
||||||
setupPacmanPack("xz")
|
setupPacmanPack("xz")
|
||||||
|
} else if (hasDnf()) {
|
||||||
|
setupDnfPack("unzip")
|
||||||
|
setupDnfPack("tar")
|
||||||
|
setupDnfPack("xz")
|
||||||
} else {
|
} else {
|
||||||
setupAptPack("unzip")
|
setupAptPack("unzip")
|
||||||
setupAptPack("tar")
|
setupAptPack("tar")
|
||||||
|
|
Loading…
Reference in New Issue