Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-05 04:09:38 +00:00
parent 7e6911d1da
commit e603849fd1

View file

@ -1348,9 +1348,9 @@ async function pruneInstallOrders(installOrders) {
try {
log('info', 'Filtering Install Orders', `Checking for presence of ${pkg}`)
await $`dpkg -l ${pkg} | grep -E '^ii' > /dev/null`
return true
} catch (e) {
return false
} catch (e) {
return true
}
})
} else if (pkgManager === 'brew') {
@ -1373,9 +1373,9 @@ async function pruneInstallOrders(installOrders) {
} else {
await $`rpm -qa | grep ${pkg} > /dev/null > /dev/null`
}
return true
} catch (e) {
return false
} catch (e) {
return true
}
})
} else if (pkgManager === 'flatpak') {
@ -1395,13 +1395,13 @@ async function pruneInstallOrders(installOrders) {
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
try {
await $`pacman -Qs ${pkg} > /dev/null > /dev/null`
return true
} catch (e) {
return false
} catch (e) {
return true
}
})
}
log('info', 'Filtering Install Orders', `Finished filtering ${pkgManager}`)
log('info', 'Filter', `Finished filtering ${pkgManager}`)
console.log(newOrders[pkgManager])
}
return newOrders