["$nofail"="nofail"]||SUDO="fatal 'Can't find sudo. Please install and tune sudo ('# epm install sudo') or run epm under root.'"
SUDO_TESTED="2"
return"$SUDO_TESTED"
fi
...
...
@@ -389,6 +390,7 @@ set_sudo()
info "Please enter sudo user password to use sudo in the current session."
if!$SUDO_CMD-l>/dev/null ;then
["$nofail"="nofail"]||SUDO="fatal 'Can't use sudo (only passwordless sudo is supported in non interactive using). Please run epm under root.'"
SUDO_TESTED="3"
return"$SUDO_TESTED"
fi
fi
...
...
@@ -396,6 +398,7 @@ set_sudo()
# use sudo if one is tuned and tuned without password
if!$SUDO_CMD-l-n>/dev/null 2>/dev/null ;then
["$nofail"="nofail"]||SUDO="fatal 'Can't use sudo (only passwordless sudo is supported). Please run epm under root or check http://altlinux.org/sudo '"
SUDO_TESTED="4"
return"$SUDO_TESTED"
fi
fi
...
...
@@ -3618,6 +3621,11 @@ epm_install_names()
return
fi
if[-n"$dryrun"];then
epm simulate "$@"
return
fi
if[-n"$non_interactive"];then
epm_ni_install_names "$@"
return
...
...
@@ -8098,6 +8106,7 @@ epm_remove()
APTOPTIONS="--simulate"
;;
*)
fatal "don't yet support --simulate for $PMTYPE"
return
;;
esac
...
...
@@ -11977,8 +11986,15 @@ epm_upgrade()
return
fi
# if possible, it will put pkg_urls into pkg_files and reconstruct pkg_filenames
if[-n"$pkg_urls"];then
info "Downloading packages assigned to upgrade ..."
["$nofail"="nofail"]||SUDO="fatal 'Can't find sudo. Please install and tune sudo ('# epm install sudo') or run epm under root.'"
SUDO_TESTED="2"
return"$SUDO_TESTED"
fi
...
...
@@ -387,6 +388,7 @@ set_sudo()
info "Please enter sudo user password to use sudo in the current session."
if!$SUDO_CMD-l>/dev/null ;then
["$nofail"="nofail"]||SUDO="fatal 'Can't use sudo (only passwordless sudo is supported in non interactive using). Please run epm under root.'"
SUDO_TESTED="3"
return"$SUDO_TESTED"
fi
fi
...
...
@@ -394,6 +396,7 @@ set_sudo()
# use sudo if one is tuned and tuned without password
if!$SUDO_CMD-l-n>/dev/null 2>/dev/null ;then
["$nofail"="nofail"]||SUDO="fatal 'Can't use sudo (only passwordless sudo is supported). Please run epm under root or check http://altlinux.org/sudo '"