Merge "Don't reinstall package just after installing."

This commit is contained in:
Jenkins 2016-01-09 06:51:04 +00:00 committed by Gerrit Code Review
commit a3ab6865ff

View File

@ -1245,7 +1245,9 @@ function real_install_package {
# install_package package [package ...]
function install_package {
update_package_repo
real_install_package $@ || RETRY_UPDATE=True update_package_repo && real_install_package $@
if ! real_install_package "$@"; then
RETRY_UPDATE=True update_package_repo && real_install_package "$@"
fi
}
# Distro-agnostic function to tell if a package is installed