mirror of https://github.com/aminya/setup-cpp
fix: fallback to nala-legacy if nala itself fails
This commit is contained in:
parent
36734c34c3
commit
e5c77ec118
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
|
@ -32,11 +32,15 @@ export function setupNala(version: string, _setupDir: string, _arch: string) {
|
|||
`echo "deb http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,
|
||||
])
|
||||
|
||||
try {
|
||||
if (version !== "legacy") {
|
||||
setupAptPack("nala", undefined, [], true)
|
||||
} else {
|
||||
setupAptPack("nala-legacy", undefined, [], true)
|
||||
}
|
||||
} catch (err) {
|
||||
setupAptPack("nala-legacy", undefined, [], true)
|
||||
}
|
||||
|
||||
binDir = "/usr/bin"
|
||||
|
||||
|
|
Loading…
Reference in New Issue