Merge "Use sudo to remove packages"

This commit is contained in:
Jenkins
2013-04-02 07:47:24 +00:00
committed by Gerrit Code Review

View File

@@ -781,9 +781,9 @@ function uninstall_package() {
if is_ubuntu; then
apt_get purge "$@"
elif is_fedora; then
yum remove -y "$@"
sudo yum remove -y "$@"
elif is_suse; then
rpm -e "$@"
sudo rpm -e "$@"
else
exit_distro_not_supported "uninstalling packages"
fi