diff --git a/lib/modules/manager/pep621/processors/pdm.spec.ts b/lib/modules/manager/pep621/processors/pdm.spec.ts index 0c6c2f9594e9f4..e6ed01a19a86fa 100644 --- a/lib/modules/manager/pep621/processors/pdm.spec.ts +++ b/lib/modules/manager/pep621/processors/pdm.spec.ts @@ -67,7 +67,7 @@ describe('modules/manager/pep621/processors/pdm', () => { ]); }); - it('rethrow error', async () => { + it('returns artifact error', async () => { const execSnapshots = mockExecAll(); GlobalConfig.set({ ...adminConfig, binarySource: 'docker' }); fs.getSiblingFileName.mockReturnValueOnce('pdm.lock'); diff --git a/lib/modules/manager/pep621/processors/pdm.ts b/lib/modules/manager/pep621/processors/pdm.ts index 7eac10ba7efe3f..e2cffb82fec73e 100644 --- a/lib/modules/manager/pep621/processors/pdm.ts +++ b/lib/modules/manager/pep621/processors/pdm.ts @@ -79,12 +79,12 @@ export class PdmProcessor implements PyProjectProcessor { // else only update specific packages let packageList = ''; if (!isLockFileMaintenance) { - packageList = updatedDeps - .map((value) => value.packageName ?? value.depName) + packageList = ' ' + updatedDeps + .map((value) => value.packageName) .join(' '); } - const cmd = `pdm update ${packageList}`; - await exec([cmd], execOptions); + const cmd = `pdm update${packageList}`; + await exec(cmd, execOptions); // check for changes const fileChanges: UpdateArtifactsResult[] = []; @@ -102,7 +102,7 @@ export class PdmProcessor implements PyProjectProcessor { logger.debug('pdm.lock is unchanged'); } - return fileChanges.length > 0 ? fileChanges : null; + return fileChanges.length ? fileChanges : null; } catch (err) { // istanbul ignore if if (err.message === TEMPORARY_ERROR) {