Commit cbe5c85c authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.51.0

parent fd288e12
...@@ -283,20 +283,21 @@ clean_store_output() ...@@ -283,20 +283,21 @@ clean_store_output()
epm() epm()
{ {
if [ -n "$PROGNAME" ] ; then if [ "$EPMMODE" = "pipe" ] ; then
local bashopt=''
[ -n "$verbose" ] && bashopt='-x'
$CMDSHELL $bashopt $PROGDIR/$PROGNAME --inscript "$@"
else
epm_main --inscript "$@" epm_main --inscript "$@"
return
fi fi
# run epm again to full initialization
local bashopt=''
[ -n "$verbose" ] && bashopt='-x'
$CMDSHELL $bashopt $PROGDIR/$PROGNAME --inscript "$@"
} }
sudoepm() sudoepm()
{ {
[ -n "$PROGNAME" ] || fatal "Can't use sudo epm call from the piped script" [ "$EPMMODE" = "pipe" ] && fatal "Can't use sudo epm call from the piped script"
local bashopt='' local bashopt=''
[ -n "$verbose" ] && bashopt='-x' [ -n "$verbose" ] && bashopt='-x'
...@@ -1630,9 +1631,10 @@ case $DISTRIB_ID in ...@@ -1630,9 +1631,10 @@ case $DISTRIB_ID in
CMD="conary" CMD="conary"
;; ;;
Windows) Windows)
CMD="appget" is_command winget && echo "winget" && return
is_command $CMD || CMD="chocolatey" is_command appget && CMD="appget"
is_command $CMD || CMD="winget" is_command chocolatey && CMD="chocolatey"
is_command npackdcl && CMD="npackd"
;; ;;
MacOS) MacOS)
CMD="homebrew" CMD="homebrew"
...@@ -1645,6 +1647,7 @@ case $DISTRIB_ID in ...@@ -1645,6 +1647,7 @@ case $DISTRIB_ID in
;; ;;
Android) Android)
CMD="android" CMD="android"
# TODO: CMD="termux-pkg"
;; ;;
Cygwin) Cygwin)
CMD="aptcyg" CMD="aptcyg"
...@@ -1950,6 +1953,9 @@ if distro altlinux-release ; then ...@@ -1950,6 +1953,9 @@ if distro altlinux-release ; then
elif has Citron ; then DISTRIB_RELEASE="2.4" elif has Citron ; then DISTRIB_RELEASE="2.4"
fi fi
PRETTY_NAME="$(cat /etc/altlinux-release)" PRETTY_NAME="$(cat /etc/altlinux-release)"
DISTRIB_CODENAME="$DISTRIB_RELEASE"
DISTRO_NAME="$DISTRIB_ID"
DISTRIB_FULL_RELEASE="$DISTRIB_RELEASE"
elif distro gentoo-release ; then elif distro gentoo-release ; then
DISTRIB_ID="Gentoo" DISTRIB_ID="Gentoo"
...@@ -2564,7 +2570,7 @@ print_version() ...@@ -2564,7 +2570,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.50.1 https://wiki.etersoft.ru/Epm" echo "Service manager version 3.51.0 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-2021" echo "Copyright (c) Etersoft 2012-2021"
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