Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-06 06:46:14 +00:00
parent b9124b9d42
commit 84434245b7

View file

@ -1437,6 +1437,15 @@ async function pruneInstallOrders(installOrders) {
} }
}) })
} else if (pkgManager === 'flatpak') { } else if (pkgManager === 'flatpak') {
const flatpakInstallation = await $`flatpak --installation`
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
try {
await runSilentCommand(`test -d ${flatpakInstallation}/app/${pkg}`)
return false
} catch (e) {
return true
}
})
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => { newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
try { try {
await runSilentCommand(`flatpak info ${pkg} > /dev/null`) await runSilentCommand(`flatpak info ${pkg} > /dev/null`)