# 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 without password sudo is supported). Please run epm under root.'"
["$nofail"="nofail"]||SUDO="fatal 'Can't use sudo (only without password sudo is supported). Please run epm under root or check http://altlinux.org/sudo.'"
return"$SUDO_TESTED"
fi
fi
...
...
@@ -519,6 +519,10 @@ get_package_type()
echo"msi"
return
;;
*.AppImage)
echo"AppImage"
return
;;
*)
#fatal "Don't know type of $1"
# return package name for info
...
...
@@ -2978,10 +2982,11 @@ epm_install_files()
ALTLinux|ALTServer)
# TODO: replace with name changed function
__epm_check_if_try_install_deb $@&&return
__epm_check_if_try_install_pkgtype deb $@&&return$RES
# 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 without password sudo is supported). Please run epm under root.'"
["$nofail"="nofail"]||SUDO="fatal 'Can't use sudo (only without password sudo is supported). Please run epm under root or check http://altlinux.org/sudo.'"