Commit d297792a authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.17.1

parent 11bf0494
...@@ -3822,7 +3822,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then ...@@ -3822,7 +3822,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
fi fi
if [ "$1" = "--remove" ] ; then if [ "$1" = "--remove" ] || [ "$1" = "remove" ] ; then
shift shift
#__check_installed_app "$1" || warning "$1 is not installed" #__check_installed_app "$1" || warning "$1 is not installed"
prescription="$1" prescription="$1"
...@@ -3861,19 +3861,19 @@ if [ "$1" = "--update" ] ; then ...@@ -3861,19 +3861,19 @@ if [ "$1" = "--update" ] ; then
exit exit
fi fi
if [ "$1" = "--installed" ] ; then if [ "$1" = "--installed" ] || [ "$1" = "installed" ] ; then
shift shift
__check_installed_app "$1" __check_installed_app "$1"
#[ -n "$quiet" ] && exit #[ -n "$quiet" ] && exit
exit exit
fi fi
if [ "$1" = "--list" ] || [ "$1" = "--list-installed" ] ; then if [ "$1" = "--list" ] || [ "$1" = "--list-installed" ] || [ "$1" = "list" ] || [ "$1" = "list-installed" ] ; then
__epm_play_list_installed __epm_play_list_installed
exit exit
fi fi
if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then if [ "$1" = "--list-all" ] || [ "$1" = "list-all" ] || [ -z "$*" ] ; then
[ -n "$short" ] || [ -n "$quiet" ] || echo "Available applications:" [ -n "$short" ] || [ -n "$quiet" ] || echo "Available applications:"
__epm_play_list $psdir __epm_play_list $psdir
[ -n "$quiet" ] || [ -n "$*" ] && exit [ -n "$quiet" ] || [ -n "$*" ] && exit
...@@ -3883,7 +3883,7 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then ...@@ -3883,7 +3883,7 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
exit exit
fi fi
if [ "$1" = "--list-scripts" ] ; then if [ "$1" = "--list-scripts" ] || [ "$1" = "list-scripts" ] ; then
[ -n "$short" ] || [ -n "$quiet" ] || echo "Run with a name of a play script to run:" [ -n "$short" ] || [ -n "$quiet" ] || echo "Run with a name of a play script to run:"
__epm_play_list $prsdir __epm_play_list $prsdir
exit exit
...@@ -4308,7 +4308,7 @@ case $PMTYPE in ...@@ -4308,7 +4308,7 @@ case $PMTYPE in
# CMD="rpm -q --provides" # CMD="rpm -q --provides"
#else #else
EXTRA_SHOWDOCMD=' | grep "Provides:"' EXTRA_SHOWDOCMD=' | grep "Provides:"'
docmd apt-cache show $pkg_names | grep "Provides:" docmd apt-cache show $pkg_names | grep "Provides:" | sed -e 's|, |\n|g' | grep -v "^Provides:"
return return
#fi #fi
;; ;;
...@@ -9023,6 +9023,9 @@ normalize_name() ...@@ -9023,6 +9023,9 @@ normalize_name()
"Fedora Linux") "Fedora Linux")
echo "Fedora" echo "Fedora"
;; ;;
"RedHatEnterpriseLinuxServer")
echo "RHEL"
;;
*) *)
#echo "${1// /}" #echo "${1// /}"
echo "$1" | sed -e "s/ //g" echo "$1" | sed -e "s/ //g"
...@@ -9061,7 +9064,7 @@ fi ...@@ -9061,7 +9064,7 @@ fi
if distro altlinux-release ; then if distro altlinux-release ; then
DISTRIB_ID="ALTLinux" DISTRIB_ID="ALTLinux"
# FIXME: fast hack for fallback: 10 -> p10 for /etc/os-release # FIXME: fast hack for fallback: 10 -> p10 for /etc/os-release
DISTRIB_RELEASE="$(echo p$DISTRIB_RELEASE | sed -e 's|\..*||')" DISTRIB_RELEASE="$(echo p$DISTRIB_RELEASE | sed -e 's|\..*||' -e 's|^pp|p|')"
if has Sisyphus ; then DISTRIB_RELEASE="Sisyphus" if has Sisyphus ; then DISTRIB_RELEASE="Sisyphus"
elif has "ALT p10.* p10 " ; then DISTRIB_RELEASE="p10" elif has "ALT p10.* p10 " ; then DISTRIB_RELEASE="p10"
elif has "ALTServer 10." ; then DISTRIB_RELEASE="p10" elif has "ALTServer 10." ; then DISTRIB_RELEASE="p10"
...@@ -9155,17 +9158,17 @@ elif distro openwrt_release ; then ...@@ -9155,17 +9158,17 @@ elif distro openwrt_release ; then
. $DISTROFILE . $DISTROFILE
DISTRIB_RELEASE=$(cat $ROOTDIR/etc/openwrt_version) DISTRIB_RELEASE=$(cat $ROOTDIR/etc/openwrt_version)
elif distro astra_version ; then
#DISTRIB_ID=`cat $DISTROFILE | get_var DISTRIB_ID`
DISTRIB_ID="AstraLinux"
#DISTRIB_RELEASE=$(cat "$DISTROFILE" | head -n1 | sed -e "s|.* \([a-z]*\).*|\1|g")
DISTRIB_RELEASE=$DISTRIB_CODENAME
# for Ubuntu use standard LSB info # for Ubuntu use standard LSB info
elif [ "$DISTRIB_ID" = "Ubuntu" ] && [ -n "$DISTRIB_RELEASE" ]; then elif [ "$DISTRIB_ID" = "Ubuntu" ] && [ -n "$DISTRIB_RELEASE" ]; then
# use LSB version # use LSB version
true true
elif distro astra_version ; then
# use OS release
DISTRIB_ID="$(echo "$DISTRIB_ID" | sed -e 's|(.*||')"
DISTRIB_RELEASE="$VERSION_CODENAME"
true
# Debian based # Debian based
elif distro debian_version ; then elif distro debian_version ; then
DISTRIB_ID="Debian" DISTRIB_ID="Debian"
...@@ -9358,6 +9361,8 @@ get_debian_arch() ...@@ -9358,6 +9361,8 @@ get_debian_arch()
arch='i386' ;; arch='i386' ;;
'x86_64') 'x86_64')
arch='amd64' ;; arch='amd64' ;;
'aarch64')
arch='arm64' ;;
esac esac
echo "$arch" echo "$arch"
} }
...@@ -10521,7 +10526,7 @@ Examples: ...@@ -10521,7 +10526,7 @@ Examples:
print_version() print_version()
{ {
echo "EPM package manager version 3.17.0 https://wiki.etersoft.ru/Epm" echo "EPM package manager version 3.17.1 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-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."
...@@ -10531,7 +10536,7 @@ print_version() ...@@ -10531,7 +10536,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.17.0 EPMVERSION=3.17.1
verbose=$EPM_VERBOSE verbose=$EPM_VERBOSE
quiet= quiet=
nodeps= nodeps=
......
...@@ -1510,6 +1510,9 @@ normalize_name() ...@@ -1510,6 +1510,9 @@ normalize_name()
"Fedora Linux") "Fedora Linux")
echo "Fedora" echo "Fedora"
;; ;;
"RedHatEnterpriseLinuxServer")
echo "RHEL"
;;
*) *)
#echo "${1// /}" #echo "${1// /}"
echo "$1" | sed -e "s/ //g" echo "$1" | sed -e "s/ //g"
...@@ -1548,7 +1551,7 @@ fi ...@@ -1548,7 +1551,7 @@ fi
if distro altlinux-release ; then if distro altlinux-release ; then
DISTRIB_ID="ALTLinux" DISTRIB_ID="ALTLinux"
# FIXME: fast hack for fallback: 10 -> p10 for /etc/os-release # FIXME: fast hack for fallback: 10 -> p10 for /etc/os-release
DISTRIB_RELEASE="$(echo p$DISTRIB_RELEASE | sed -e 's|\..*||')" DISTRIB_RELEASE="$(echo p$DISTRIB_RELEASE | sed -e 's|\..*||' -e 's|^pp|p|')"
if has Sisyphus ; then DISTRIB_RELEASE="Sisyphus" if has Sisyphus ; then DISTRIB_RELEASE="Sisyphus"
elif has "ALT p10.* p10 " ; then DISTRIB_RELEASE="p10" elif has "ALT p10.* p10 " ; then DISTRIB_RELEASE="p10"
elif has "ALTServer 10." ; then DISTRIB_RELEASE="p10" elif has "ALTServer 10." ; then DISTRIB_RELEASE="p10"
...@@ -1642,17 +1645,17 @@ elif distro openwrt_release ; then ...@@ -1642,17 +1645,17 @@ elif distro openwrt_release ; then
. $DISTROFILE . $DISTROFILE
DISTRIB_RELEASE=$(cat $ROOTDIR/etc/openwrt_version) DISTRIB_RELEASE=$(cat $ROOTDIR/etc/openwrt_version)
elif distro astra_version ; then
#DISTRIB_ID=`cat $DISTROFILE | get_var DISTRIB_ID`
DISTRIB_ID="AstraLinux"
#DISTRIB_RELEASE=$(cat "$DISTROFILE" | head -n1 | sed -e "s|.* \([a-z]*\).*|\1|g")
DISTRIB_RELEASE=$DISTRIB_CODENAME
# for Ubuntu use standard LSB info # for Ubuntu use standard LSB info
elif [ "$DISTRIB_ID" = "Ubuntu" ] && [ -n "$DISTRIB_RELEASE" ]; then elif [ "$DISTRIB_ID" = "Ubuntu" ] && [ -n "$DISTRIB_RELEASE" ]; then
# use LSB version # use LSB version
true true
elif distro astra_version ; then
# use OS release
DISTRIB_ID="$(echo "$DISTRIB_ID" | sed -e 's|(.*||')"
DISTRIB_RELEASE="$VERSION_CODENAME"
true
# Debian based # Debian based
elif distro debian_version ; then elif distro debian_version ; then
DISTRIB_ID="Debian" DISTRIB_ID="Debian"
...@@ -1845,6 +1848,8 @@ get_debian_arch() ...@@ -1845,6 +1848,8 @@ get_debian_arch()
arch='i386' ;; arch='i386' ;;
'x86_64') 'x86_64')
arch='amd64' ;; arch='amd64' ;;
'aarch64')
arch='arm64' ;;
esac esac
echo "$arch" echo "$arch"
} }
...@@ -3076,7 +3081,7 @@ print_version() ...@@ -3076,7 +3081,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.17.0 https://wiki.etersoft.ru/Epm" echo "Service manager version 3.17.1 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