From 84434245b79d9c517b69db8d957cc87fa4d1badf Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 6 Jan 2023 06:46:14 +0000 Subject: [PATCH] Update file executable_install-program --- home/dot_local/bin/executable_install-program | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 45795804..2aa67dd0 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -1437,6 +1437,15 @@ async function pruneInstallOrders(installOrders) { } }) } 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) => { try { await runSilentCommand(`flatpak info ${pkg} > /dev/null`)