Commit ffa68572 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.11.2

parent 7eab4d5b
...@@ -155,7 +155,11 @@ docmd_foreach() ...@@ -155,7 +155,11 @@ docmd_foreach()
sudorun() sudorun()
{ {
set_sudo set_sudo
[ -n "$SUDO" ] && $SUDO "$@" || "$@" if [ -z "$SUDO" ] ; then
"$@"
return
fi
$SUDO "$@"
} }
sudocmd() sudocmd()
...@@ -6089,6 +6093,10 @@ EOF ...@@ -6089,6 +6093,10 @@ EOF
add) # HELPCMD: add package repo (etersoft, autoimports, archive 2017/12/31); run with param to get list add) # HELPCMD: add package repo (etersoft, autoimports, archive 2017/12/31); run with param to get list
epm_addrepo "$@" epm_addrepo "$@"
;; ;;
Add) # HELPCMD: like add, but do update after add
epm_addrepo "$@"
epm update
;;
rm|remove) # HELPCMD: remove repository from sources list (epm repo remove all for all) rm|remove) # HELPCMD: remove repository from sources list (epm repo remove all for all)
epm_removerepo "$@" epm_removerepo "$@"
;; ;;
...@@ -9817,7 +9825,7 @@ Examples: ...@@ -9817,7 +9825,7 @@ Examples:
print_version() print_version()
{ {
echo "EPM package manager version 3.11.1 https://wiki.etersoft.ru/Epm" echo "EPM package manager version 3.11.2 https://wiki.etersoft.ru/Epm"
echo "Running on $($DISTRVENDOR -e) ('$PMTYPE' package manager uses '$PKGFORMAT' package format)" echo "Running on $($DISTRVENDOR -e) ('$PMTYPE' package manager uses '$PKGFORMAT' package format)"
echo "Copyright (c) Etersoft 2012-2020" echo "Copyright (c) Etersoft 2012-2020"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
...@@ -9827,7 +9835,7 @@ print_version() ...@@ -9827,7 +9835,7 @@ print_version()
Usage="Usage: epm [options] <command> [package name(s), package files]..." Usage="Usage: epm [options] <command> [package name(s), package files]..."
Descr="epm - EPM package manager" Descr="epm - EPM package manager"
EPMVERSION=3.11.1 EPMVERSION=3.11.2
verbose= verbose=
quiet= quiet=
nodeps= nodeps=
......
...@@ -146,7 +146,11 @@ docmd_foreach() ...@@ -146,7 +146,11 @@ docmd_foreach()
sudorun() sudorun()
{ {
set_sudo set_sudo
[ -n "$SUDO" ] && $SUDO "$@" || "$@" if [ -z "$SUDO" ] ; then
"$@"
return
fi
$SUDO "$@"
} }
sudocmd() sudocmd()
...@@ -2863,7 +2867,7 @@ print_version() ...@@ -2863,7 +2867,7 @@ print_version()
local on_text="(host system)" local on_text="(host system)"
local virt="$($DISTRVENDOR -i)" local virt="$($DISTRVENDOR -i)"
[ "$virt" = "(unknown)" ] || [ "$virt" = "(host system)" ] || on_text="(under $virt)" [ "$virt" = "(unknown)" ] || [ "$virt" = "(host system)" ] || on_text="(under $virt)"
echo "Service manager version 3.11.1 https://wiki.etersoft.ru/Epm" echo "Service manager version 3.11.2 https://wiki.etersoft.ru/Epm"
echo "Running on $($DISTRVENDOR -e) $on_text with $SERVICETYPE" echo "Running on $($DISTRVENDOR -e) $on_text with $SERVICETYPE"
echo "Copyright (c) Etersoft 2012-2019" echo "Copyright (c) Etersoft 2012-2019"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment