Merge "Also detected failed packages in dnf/yum wrapper"
diff --git a/functions-common b/functions-common
index 9e6fef2..2aca6de 100644
--- a/functions-common
+++ b/functions-common
@@ -1324,15 +1324,16 @@
# Warning: this would not work if yum output message
# have been translated to another language
- parse_yum_result='\
- BEGIN { result=0 }\
- /^YUM_FAILED/ { exit $2 }\
- /^No package/ { result=1 }\
- //{ print }\
+ parse_yum_result=' \
+ BEGIN { result=0 } \
+ /^YUM_FAILED/ { exit $2 } \
+ /^No package/ { result=1 } \
+ /^Failed:/ { result=1 } \
+ //{ print } \
END { exit result }'
# The manual check for missing packages is because yum -y assumes
- # missing packages are OK.
+ # missing or failed packages are OK.
# See https://bugzilla.redhat.com/show_bug.cgi?id=965567
(sudo_with_proxies "${YUM:-yum}" install -y "$@" 2>&1 || echo YUM_FAILED $?) \
| awk "$parse_yum_result"