mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-04-14 19:46:54 +00:00
Recover --name-only and properly fix Python 3.5 syntax
This commit is contained in:
parent
9042a8a5fb
commit
07a02b008d
1 changed files with 3 additions and 5 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue