Update file executable_install-program
This commit is contained in:
parent
b9124b9d42
commit
84434245b7
1 changed files with 9 additions and 0 deletions
|
@ -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`)
|
||||||
|
|
Loading…
Reference in a new issue