Update file executable_install-program
This commit is contained in:
parent
b2ec1d1177
commit
c499c871d5
1 changed files with 5 additions and 15 deletions
|
@ -1350,28 +1350,18 @@ async function pruneInstallOrders(installOrders) {
|
|||
}
|
||||
})
|
||||
} else if (pkgManager === 'brew') {
|
||||
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
|
||||
try {
|
||||
log('info', 'Detecting Brew Package', `Checking for presence of ${pkg} with Homebrew`)
|
||||
await $`brew list ${pkg} > /dev/null`
|
||||
log('info', 'Brew Package', `${pkg} is present`)
|
||||
return true
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
})
|
||||
/*let newVal = newOrders[pkgManager]
|
||||
let newVal = newOrders[pkgManager]
|
||||
for (const pkg of newOrders[pkgManager]) {
|
||||
try {
|
||||
log('info', 'Test', 'Listing..')
|
||||
await $`brew list ${pkg}`
|
||||
log('info)
|
||||
console.log('start')
|
||||
runCommand('Pruning Homebrew packages that are already installed from the install list', `brew list ${pkg}`)
|
||||
console.log('stop')
|
||||
newVal = newVal.filter(x => x === pkg)
|
||||
} catch (e) {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
newOrders[pkgManager] = newVal*/
|
||||
newOrders[pkgManager] = newVal
|
||||
} else if (pkgManager === 'dnf') {
|
||||
const dnf = which.sync('dnf', { nothrow: true })
|
||||
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
|
||||
|
|
Loading…
Reference in a new issue