Commit 2e3a17bb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repo remove: refactoring

parent d43a3ed0
...@@ -98,14 +98,7 @@ case $BASEDISTRNAME in ...@@ -98,14 +98,7 @@ case $BASEDISTRNAME in
__epm_removerepo_alt "$@" __epm_removerepo_alt "$@"
return return
;; ;;
esac; "astra")
case $PMTYPE in
apt-dpkg)
assure_exists apt-add-repository software-properties-common
set_sudo
if [ "$DISTRNAME" = "AstraLinuxCE" ] || [ "$DISTRNAME" = "AstraLinuxSE" ] ; then
echo "Use workaround for AstraLinux" echo "Use workaround for AstraLinux"
[ -n "$*" ] || fatal "empty repo name" [ -n "$*" ] || fatal "empty repo name"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel # aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
...@@ -113,9 +106,13 @@ case $PMTYPE in ...@@ -113,9 +106,13 @@ case $PMTYPE in
if [ -d /etc/apt/sources.list.d ] && ls /etc/apt/sources.list.d/*.list >/dev/null 2>/dev/null ; then 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 sudocmd sed -i -e "s|.*$*.*||" /etc/apt/sources.list.d/*.list
fi fi
exit return
fi ;;
esac;
case $PMTYPE in
apt-dpkg)
assure_exists apt-add-repository software-properties-common
# 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"
......
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