Skip to content

Commit a8740df

Browse files
committed
Refine asset ranking logic to include wrong-arch assets only as a last resort
1 parent a17d1d5 commit a8740df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/updater.vala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,10 @@ namespace AppManager.Core {
962962
ranked.add_all(no_arch_assets);
963963
}
964964

965-
// Then remaining assets
966-
ranked.add_all(others);
965+
// Only include wrong-arch assets as last resort when no better candidates exist
966+
if (ranked.size == 0) {
967+
ranked.add_all(others);
968+
}
967969

968970
return ranked;
969971
}

0 commit comments

Comments
 (0)