Skip to content

Commit e5c77ec

Browse files
committed
fix: fallback to nala-legacy if nala itself fails
1 parent 36734c3 commit e5c77ec

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/setup_cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/nala/nala.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ export function setupNala(version: string, _setupDir: string, _arch: string) {
3232
`echo "deb http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,
3333
])
3434

35-
if (version !== "legacy") {
36-
setupAptPack("nala", undefined, [], true)
37-
} else {
35+
try {
36+
if (version !== "legacy") {
37+
setupAptPack("nala", undefined, [], true)
38+
} else {
39+
setupAptPack("nala-legacy", undefined, [], true)
40+
}
41+
} catch (err) {
3842
setupAptPack("nala-legacy", undefined, [], true)
3943
}
4044

0 commit comments

Comments
 (0)