1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

makepkg: cleanup a few format string injections

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Dave Reisner 2013-09-02 16:50:08 -04:00 committed by Allan McRae
parent 61e806b96a
commit cfbc4fe809

View File

@ -1204,16 +1204,16 @@ check_checksums() {
for file in "${source[@]}"; do for file in "${source[@]}"; do
local found=1 local found=1
file="$(get_filename "$file")" file="$(get_filename "$file")"
printf "%s" " $file ... " >&2 printf ' %s ... ' "$file" >&2
if [[ ${integrity_sums[$idx]} = 'SKIP' ]]; then if [[ ${integrity_sums[$idx]} = 'SKIP' ]]; then
echo "$(gettext "Skipped")" >&2 printf '%s\n' "$(gettext "Skipped")" >&2
idx=$((idx + 1)) idx=$((idx + 1))
continue continue
fi fi
if ! file="$(get_filepath "$file")"; then if ! file="$(get_filepath "$file")"; then
printf -- "$(gettext "NOT FOUND")\n" >&2 printf '%s\n' "$(gettext "NOT FOUND")" >&2
errors=1 errors=1
found=0 found=0
fi fi
@ -1223,9 +1223,9 @@ check_checksums() {
local realsum="$(openssl dgst -${integ} "$file")" local realsum="$(openssl dgst -${integ} "$file")"
realsum="${realsum##* }" realsum="${realsum##* }"
if [[ $expectedsum = "$realsum" ]]; then if [[ $expectedsum = "$realsum" ]]; then
printf -- "$(gettext "Passed")\n" >&2 printf '%s\n' "$(gettext "Passed")" >&2
else else
printf -- "$(gettext "FAILED")\n" >&2 printf '%s\n' "$(gettext "FAILED")" >&2
errors=1 errors=1
fi fi
fi fi