diff --git a/lib/modules/manager/rpm/artifacts.ts b/lib/modules/manager/rpm/artifacts.ts index f0510276b1904b..e1f18ce6ec5afb 100644 --- a/lib/modules/manager/rpm/artifacts.ts +++ b/lib/modules/manager/rpm/artifacts.ts @@ -14,6 +14,7 @@ export async function updateArtifacts({ logger.debug(`rpm.updateArtifacts(${packageFileName})`); const extension = packageFileName.split('.').pop(); const lockFileName = `rpms.lock.${extension}`; + const outputName = 'rpms.lock.tmp.yaml'; logger.debug(`RPM lock file: ${lockFileName}`); @@ -26,7 +27,7 @@ export async function updateArtifacts({ try { await deleteLocalFile(lockFileName); - cmd.push(`rpm-lockfile-prototype ${packageFileName}`); + cmd.push(`caching-rpm-lockfile-prototype ${packageFileName} --outfile ${outputName}`); const execOptions: ExecOptions = { cwdFile: packageFileName, @@ -34,7 +35,7 @@ export async function updateArtifacts({ await exec(cmd, execOptions); - const newLockFileContent = await readLocalFile(lockFileName, 'utf8'); + const newLockFileContent = await readLocalFile(outputName, 'utf8'); if (existingLockFileContent === newLockFileContent) { logger.debug(`${lockFileName} is unchanged`); diff --git a/lib/modules/manager/rpm/extract.ts b/lib/modules/manager/rpm/extract.ts index 0eb456e00309d2..818db01a929caa 100644 --- a/lib/modules/manager/rpm/extract.ts +++ b/lib/modules/manager/rpm/extract.ts @@ -17,7 +17,7 @@ async function getUpdatedLockfile(): Promise { return; } - cmd.push(`rpm-lockfile-prototype ${packageFileName} --outfile ${outputName}`); + cmd.push(`caching-rpm-lockfile-prototype ${packageFileName} --outfile ${outputName}`); const execOptions: ExecOptions = { cwdFile: packageFileName,