Commit d9997415 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.15.3

parent 6fadc875
...@@ -754,6 +754,15 @@ __epm_addrepo_deb() ...@@ -754,6 +754,15 @@ __epm_addrepo_deb()
return return
fi fi
if [ "$DISTRNAME" = "AstraLinux" ] ; then
echo "Use workaround for AstraLinux"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
echo "" | sudocmd tee -a /etc/apt/sources.list
echo "$repo" | sudocmd tee -a /etc/apt/sources.list
exit
fi
# keywords # keywords
case "$1" in case "$1" in
docker) docker)
...@@ -2530,6 +2539,8 @@ epm_full_upgrade() ...@@ -2530,6 +2539,8 @@ epm_full_upgrade()
epm_upgrade || return epm_upgrade || return
epm_kernel_update || return epm_kernel_update || return
epm play --update all || return
} }
# File bin/epm-info: # File bin/epm-info:
...@@ -3656,7 +3667,7 @@ __epm_play_run() ...@@ -3656,7 +3667,7 @@ __epm_play_run()
shift shift
if [ ! -x "$script" ] ; then if [ ! -x "$script" ] ; then
fatal "Can't find play script $script." fatal "Can't find executable play script $script."
fi fi
# allow use EGET in the scripts # allow use EGET in the scripts
...@@ -3666,8 +3677,10 @@ __epm_play_run() ...@@ -3666,8 +3677,10 @@ __epm_play_run()
export SUDO export SUDO
local bashopt=''
[ -n "$verbose" ] && bashopt='-x' && export EPM_VERBOSE="$verbose"
#info "Running $($script --description 2>/dev/null) ..." #info "Running $($script --description 2>/dev/null) ..."
docmd $script "$@" docmd bash $bashopt $script "$@"
} }
epm_play() epm_play()
...@@ -5880,7 +5893,7 @@ __epm_removerepo_alt_grepremove() ...@@ -5880,7 +5893,7 @@ __epm_removerepo_alt_grepremove()
if [ "$1" = "all" ] || rhas "$1" "^rpm" ; then if [ "$1" = "all" ] || rhas "$1" "^rpm" ; then
rl="$1" rl="$1"
else else
rl="$((quiet=1 epm repolist) 2>/dev/null | grep -E "$1")" rl="$( (quiet=1 epm repolist) 2>/dev/null | grep -E "$1")"
[ -z "$rl" ] && warning "Can't find '$1' in the repos (see '# epm repolist' output)" && return 1 [ -z "$rl" ] && warning "Can't find '$1' in the repos (see '# epm repolist' output)" && return 1
fi fi
echo "$rl" | while read rp ; do echo "$rl" | while read rp ; do
...@@ -5955,6 +5968,18 @@ case $PMTYPE in ...@@ -5955,6 +5968,18 @@ case $PMTYPE in
apt-dpkg) apt-dpkg)
assure_exists apt-add-repository software-properties-common assure_exists apt-add-repository software-properties-common
set_sudo set_sudo
if [ "$DISTRNAME" = "AstraLinux" ] ; then
echo "Use workaround for AstraLinux"
[ -n "$*" ] || fatal "empty repo name"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
sudocmd sed -i -e "s|.*$*.*||" /etc/apt/sources.list
if [ -d /etc/apt/sources.list.d ] && ls /etc/apt/sources.list.d/*.list >/dev/null 2>/dev/null ; then
sudocmd sed -i -e "s|.*$*.*||" /etc/apt/sources.list.d/*.list
fi
exit
fi
# FIXME: it is possible there is troubles to pass the args # FIXME: it is possible there is troubles to pass the args
sudocmd apt-add-repository --remove "$*" sudocmd apt-add-repository --remove "$*"
info "Check file /etc/apt/sources.list if needed" info "Check file /etc/apt/sources.list if needed"
...@@ -8673,7 +8698,7 @@ internal_distr_info() ...@@ -8673,7 +8698,7 @@ internal_distr_info()
# You can set ROOTDIR to root system dir # You can set ROOTDIR to root system dir
#ROOTDIR= #ROOTDIR=
PROGVERSION="20220318" PROGVERSION="20220323"
# TODO: check /etc/system-release # TODO: check /etc/system-release
...@@ -8861,7 +8886,7 @@ pkgtype() ...@@ -8861,7 +8886,7 @@ pkgtype()
*) *)
case $(pkgmanager) in case $(pkgmanager) in
*-dpkg) *-dpkg)
echo "dpkg" ;; echo "deb" ;;
*-rpm) *-rpm)
echo "rpm" ;; echo "rpm" ;;
*) *)
...@@ -10295,7 +10320,7 @@ Examples: ...@@ -10295,7 +10320,7 @@ Examples:
print_version() print_version()
{ {
echo "EPM package manager version 3.15.2 https://wiki.etersoft.ru/Epm" echo "EPM package manager version 3.15.3 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."
...@@ -10305,8 +10330,8 @@ print_version() ...@@ -10305,8 +10330,8 @@ 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.15.2 EPMVERSION=3.15.3
verbose= verbose=$EPM_VERBOSE
quiet= quiet=
nodeps= nodeps=
noremove= noremove=
......
...@@ -1291,7 +1291,7 @@ internal_distr_info() ...@@ -1291,7 +1291,7 @@ internal_distr_info()
# You can set ROOTDIR to root system dir # You can set ROOTDIR to root system dir
#ROOTDIR= #ROOTDIR=
PROGVERSION="20220318" PROGVERSION="20220323"
# TODO: check /etc/system-release # TODO: check /etc/system-release
...@@ -1479,7 +1479,7 @@ pkgtype() ...@@ -1479,7 +1479,7 @@ pkgtype()
*) *)
case $(pkgmanager) in case $(pkgmanager) in
*-dpkg) *-dpkg)
echo "dpkg" ;; echo "deb" ;;
*-rpm) *-rpm)
echo "rpm" ;; echo "rpm" ;;
*) *)
...@@ -2981,7 +2981,7 @@ print_version() ...@@ -2981,7 +2981,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.15.2 https://wiki.etersoft.ru/Epm" echo "Service manager version 3.15.3 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