Bug 10942: (QA followup) make warnings to to STDERR
As noted by Robin, STDOUT is used by the script to communicate with debconf and, hence, the warning messages should be directed to STDERR. This patch does that. To test: - Set AUTOMATIC_TRANSLATIONS_UPDATE="no" so the warning normally shows - Redirect STDOUT to /dev/null: dpkg -i koha-common...deb > /dev/null => Warning message doesn't show (i.e. it is sent to STDOUT) - Apply the patch, rebuild package - Redirect STDOUT to /dev/null: dpkg -i koha-common...deb > /dev/null => Warning message shows (i.e. is correctly sent to STDERR) - Redirect STDERR to /dev/null: dpkg -i koha-common...deb 2> /dev/null => Warning message doesn't show - Verify that previous tests pass Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
ee4e4917eb
commit
2a7e71554b
|
|
@ -59,7 +59,7 @@ if [ "$AUTOMATIC_TRANSLATIONS_UPDATE" = "yes" ]; then
|
|||
if koha-translate --update $lang; then
|
||||
echo "Updated the $lang translations."
|
||||
else
|
||||
cat <<EOF
|
||||
cat <<EOF >&2
|
||||
ERROR: an error was found when updating '$lang' translations. Please manually
|
||||
run 'koha-translate --update $lang'. Run man koha-translate for more options.
|
||||
EOF
|
||||
|
|
@ -69,7 +69,7 @@ else
|
|||
# no auto-update, check update needed and warn if needed
|
||||
if koha-translate --list | grep -v -q -x "en"; then
|
||||
# translations installed, update needed
|
||||
cat <<EOF
|
||||
cat <<EOF >&2
|
||||
Warning: template translations are not set to be automatically updated.
|
||||
Please manually run 'koha-translate --update lang_code' to update them.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue