Update file executable_install-program
This commit is contained in:
parent
13e47a9a4d
commit
96551facc9
1 changed files with 4 additions and 4 deletions
|
@ -1427,9 +1427,9 @@ async function pruneInstallOrders(installOrders) {
|
||||||
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
|
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
|
||||||
try {
|
try {
|
||||||
if (dnf) {
|
if (dnf) {
|
||||||
await runSilentCommand(`rpm -qa | grep ${pkg} > /dev/null > /dev/null`)
|
await runSilentCommand(`rpm -qa | grep ${pkg} > /dev/null`)
|
||||||
} else {
|
} else {
|
||||||
await runSilentCommand(`rpm -qa | grep ${pkg} > /dev/null > /dev/null`)
|
await runSilentCommand(`rpm -qa | grep ${pkg} > /dev/null`)
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -1437,7 +1437,7 @@ async function pruneInstallOrders(installOrders) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if (pkgManager === 'flatpak') {
|
} else if (pkgManager === 'flatpak') {
|
||||||
newOrders[pkgManager] = newOrders[pkgManager].filter(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`)
|
||||||
return false
|
return false
|
||||||
|
@ -1448,7 +1448,7 @@ async function pruneInstallOrders(installOrders) {
|
||||||
} else if (pkgManager === 'pacman') {
|
} else if (pkgManager === 'pacman') {
|
||||||
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
|
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
|
||||||
try {
|
try {
|
||||||
await runSilentCommand(`pacman -Qs ${pkg} > /dev/null > /dev/null`)
|
await runSilentCommand(`pacman -Qs ${pkg} > /dev/null`)
|
||||||
return false
|
return false
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in a new issue