fix: use apt-cache show instead of apt-get show

This commit is contained in:
Amin Yahyaabadi 2023-05-24 16:23:17 -07:00
parent 11b44434f5
commit 5e5a8d08d2
5 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -68,7 +68,7 @@ async function getAptArg(name: string, version: string | undefined) {
return `${name}-${version}` return `${name}-${version}`
} else { } else {
// check if apt-get show can find the version // check if apt-get show can find the version
const { stdout: showStdout } = await execa("apt-get", ["show", `${name}=${version}`]) const { stdout: showStdout } = await execa("apt-cache", ["show", `${name}=${version}`])
if (showStdout.trim() === "") { if (showStdout.trim() === "") {
return `${name}=${version}` return `${name}=${version}`
} }