From 07a02b008da43ea87bfa854cc427838ead9af29c Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Thu, 15 Sep 2022 08:47:43 +0200 Subject: [PATCH] Recover --name-only and properly fix Python 3.5 syntax --- tools/find-changed-builds.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/find-changed-builds.py b/tools/find-changed-builds.py index 776a31d5af..5dce7486d9 100755 --- a/tools/find-changed-builds.py +++ b/tools/find-changed-builds.py @@ -14,11 +14,10 @@ target_ref = os.getenv('TARGET_REF') source_ref = os.getenv('SOURCE_REF') for appid in sorted(changed): - metadata_file = 'metadata/' + appid +'.yml' + metadata_file = 'metadata/{appid}.yml'.format(**locals()) diff = subprocess.check_output( ( - 'git diff --no-color --diff-filter=d ' + target_ref + - '...' + source_ref + ' -- ' + metadata_file + 'git diff --no-color --diff-filter=d {target_ref}...{source_ref} -- {metadata_file}' .format(**locals()) ).split(' ') ) @@ -83,8 +82,7 @@ for appid in sorted(changed): signatures_dir = 'metadata/%s/signatures/' % appid diff = subprocess.check_output( ( - 'git diff --no-color --diff-filter=d ' + target_ref + - '...' + source_ref + ' -- ' + signatures_dir + 'git diff --name-only --no-color --diff-filter=d {target_ref}...{source_ref} -- {signatures_dir}'.format(**locals()) ).split(' ') ) for f in diff.split():