Save pkg call return code to use on return. The way it is now is always returning 0. It should fix #5837

This commit is contained in:
Renato Botelho 2016-02-01 17:31:35 -02:00
parent 6635aa0f6c
commit ec3371678b

View File

@ -176,8 +176,9 @@ pkg_with_pb() {
fi
pkg ${_event_pipe} $@
local _pkg_result=$?
nc_pid=""
return $?
return ${_pkg_result}
}
fetch_upgrade_packages() {