mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-03 04:01:27 -06:00
fastlint: Correct concatenation of file lists
`printf` ignores excessive arguments unused in formatting. This resulted in only the first file from two file lists was linted/ stylechecked if both Python template files and Python modules were changed. Make use of formatting instead: > The format is reused as necessary to consume all of the arguments Fixes: https://pagure.io/freeipa/issue/9318 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
07fe877525
commit
d32c640df0
@ -244,7 +244,7 @@ fastcodestyle: $(GENERATED_PYTHON_FILES) ipasetup.py
|
||||
| xargs -n1 file 2>/dev/null | grep Python \
|
||||
| cut -d':' -f1; ); \
|
||||
if [ -n "$${PYFILES}" ] && [ -n "$${INFILES}" ]; then \
|
||||
FILES="$$( printf $${PYFILES}\\n$${INFILES} )" ; \
|
||||
FILES="$$( printf '%s\n' "$${PYFILES}" "$${INFILES}" )" ; \
|
||||
elif [ -n "$${PYFILES}" ]; then \
|
||||
FILES="$${PYFILES}" ; \
|
||||
else \
|
||||
@ -274,7 +274,7 @@ endif
|
||||
| xargs -n1 file 2>/dev/null | grep Python \
|
||||
| cut -d':' -f1; ); \
|
||||
if [ -n "$${PYFILES}" ] && [ -n "$${INFILES}" ]; then \
|
||||
FILES="$$( printf $${PYFILES}\\n$${INFILES} )" ; \
|
||||
FILES="$$( printf '%s\n' "$${PYFILES}" "$${INFILES}" )" ; \
|
||||
elif [ -n "$${PYFILES}" ]; then \
|
||||
FILES="$${PYFILES}" ; \
|
||||
else \
|
||||
|
Loading…
Reference in New Issue
Block a user