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,9 +32,13 @@ 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`,
|
`echo "deb http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,
|
||||||
])
|
])
|
||||||
|
|
||||||
if (version !== "legacy") {
|
try {
|
||||||
setupAptPack("nala", undefined, [], true)
|
if (version !== "legacy") {
|
||||||
} else {
|
setupAptPack("nala", undefined, [], true)
|
||||||
|
} else {
|
||||||
|
setupAptPack("nala-legacy", undefined, [], true)
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
setupAptPack("nala-legacy", undefined, [], true)
|
setupAptPack("nala-legacy", undefined, [], true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue