# use sudo if one is tuned and tuned without password
# hack: check twice
$SUDO_CMD-l-n>/dev/null 2>/dev/null
if!$SUDO_CMD-l-n>/dev/null 2>/dev/null ;then
["$nofail"="nofail"]||SUDO="fatal 'Can't use sudo (only passwordless sudo is supported here). Please run epm under root or check http://altlinux.org/sudo '"
SUDO_TESTED="4"
...
...
@@ -790,7 +793,7 @@ get_package_type()
return
fi
# print extension by default
echo"$1" | sed-e's|.*\.||'
basename"$1" | sed-e's|.*\.||'
return 1
;;
esac
...
...
@@ -3540,9 +3543,10 @@ epm_full_upgrade_help()
{
get_help HELPCMD $SHAREDIR/epm-full_upgrade
cat<<EOF
You can run with --interactive if you can skip some steps interactivelyю
You can run with --interactive if you can skip some steps interactively.
Also you can comment out full_upgrade parts in /etc/eepm/eepm.conf config.
Examples:
epm full-upgrade [--auto]
epm full-upgrade [--interactive]
epm full-upgrade --no-flatpack
EOF
...
...
@@ -3622,7 +3626,11 @@ confirm_action()
confirm_action "Upgrade packages installed via epm play? [Y/n]"||full_upgrade_no_epm_play=1
if[-z"$full_upgrade_no_epm_play"];then
[-n"$quiet"]||echo
docmd epm $dryrun play --update all || fatal "updating of applications installed via epm play is failed."
if[-n"$force"];then
docmd epm $dryrun play || fatal "updating of applications installed via epm play is failed."
else
docmd epm $dryrun play --update all || fatal "updating of applications installed via epm play is failed."
fi
fi
...
...
@@ -5715,7 +5723,7 @@ __epm_pack_run_handler()
returntarname=''
local repackcode="$EPM_PACK_SCRIPTS_DIR/$packname.sh"
[-x"$repackcode"]||return
[-s"$repackcode"]||return
[-f"$repackcode.rpmnew"]&& warning "There is .rpmnew file(s) in $EPM_PACK_SCRIPTS_DIR dir. The pack script can be outdated."
# a file to keep filename of generated tarball
...
...
@@ -6076,7 +6084,7 @@ __is_app_installed()
__run_script()
{
local script="$psdir/$1.sh"
[-x"$script"]||return
[-s"$script"]||return
[-f"$script.rpmnew"]&& warning "There is .rpmnew file(s) in $psdir dir. The play script can be outdated."
# use sudo if one is tuned and tuned without password
# hack: check twice
$SUDO_CMD-l-n>/dev/null 2>/dev/null
if!$SUDO_CMD-l-n>/dev/null 2>/dev/null ;then
["$nofail"="nofail"]||SUDO="fatal 'Can't use sudo (only passwordless sudo is supported here). Please run epm under root or check http://altlinux.org/sudo '"