Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-04 05:28:46 +00:00
parent 0df409313a
commit 35057af0cf

View file

@ -1320,6 +1320,15 @@ async function pruneInstallOrders(installOrders) {
return false return false
} }
}) })
} else if (pkgManager === 'brew') {
newOrders[pkgManager] = newOrders[pkgManager].filter(async x => {
try {
await $`brew list ${pkg}`
return true
} catch (e) {
return false
}
})
} else if (pkgManager === 'dnf') { } else if (pkgManager === 'dnf') {
const dnf = which.sync('dnf', { nothrow: true }) const dnf = which.sync('dnf', { nothrow: true })
newOrders[pkgManager] = newOrders[pkgManager].filter(async x => { newOrders[pkgManager] = newOrders[pkgManager].filter(async x => {