From 2ab26debd850740c2f936cd182e54ce7ce5c3325 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Fri, 11 Nov 2022 16:23:45 +0100 Subject: [PATCH] Ensure yum(1) output is English --- rpmconf/Install/Util/utilfunc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpmconf/Install/Util/utilfunc.sh b/rpmconf/Install/Util/utilfunc.sh index f5790fb91..ec400a834 100755 --- a/rpmconf/Install/Util/utilfunc.sh +++ b/rpmconf/Install/Util/utilfunc.sh @@ -2786,7 +2786,8 @@ getPlatformVars() { REPORM='yum erase -y' PACKAGEINST='rpm -Uvh --replacefiles --replacepkgs' # TODO: This should kept in os-requirement. - yum -y install --downloadonly dummyxxxxxxx 2>&1 | grep "no such option: --downloadonly" >/dev/null 2>&1 + LANG="en_US.UTF-8" LANGUAGE="en_US" \ + yum -y install --downloadonly dummyxxxxxxx 2>&1 | grep "no such option: --downloadonly" >/dev/null 2>&1 if [ $? -eq 0 ]; then echo "Installing yum-plugin-downloadonly." yum -y install yum-plugin-downloadonly