Commit 030d0611 authored by Vitaly Lipatov's avatar Vitaly Lipatov

use apt-repo on ALT Linux for repo manipulation

parent 585ea680
......@@ -156,7 +156,7 @@ check_command()
addrepo|ar) # HELPCMD: add package repo
epm_cmd=addrepo
;;
repolist|sl) # HELPCMD: print repo list
repolist|sl|listrepo) # HELPCMD: print repo list
epm_cmd=repolist
;;
removerepo|rr) # HELPCMD: remove package repo
......
......@@ -21,7 +21,10 @@
epm_addrepo()
{
case $PMTYPE in
apt-rpm|apt-dpkg)
apt-rpm)
docmd $SUDO apt-repo add $pkg_filenames
;;
apt-dpkg)
echo "You need manually add repo to /etc/apt/sources.list"
;;
yum-rpm)
......
......@@ -21,20 +21,23 @@
epm_removerepo()
{
case $PMTYPE in
apt-rpm|apt-dpkg)
apt-rpm)
docmd $SUDO apt-repo rm $pkg_filenames
;;
apt-dpkg)
echo "You need remove repo from /etc/apt/sources.list"
;;
yum-rpm)
echo "You need remove repo from /etc/yum.repos.d/"
;;
urpm-rpm)
docmd $SUDO urpmi.removemedia $pkg_names
docmd $SUDO urpmi.removemedia $pkg_filenames
;;
zypper-rpm)
docmd $SUDO zypper removerepo $pkg_names
docmd $SUDO zypper removerepo $pkg_filenames
;;
emerge)
docmd $SUDO layman -d$pkg_names
docmd $SUDO layman -d$pkg_filenames
;;
pacman)
echo "You need remove repo from /etc/pacman.conf"
......
......@@ -31,8 +31,12 @@ print_apt_sources_list()
epm_repolist()
{
case $PMTYPE in
apt-rpm|apt-dpkg)
docmd print_apt_sources_list /etc/apt/sources.list /etc/apt/sources.list.d/*
apt-rpm)
docmd apt-repo list
;;
apt-dpkg)
showcmd cat /etc/apt/sources.list*
print_apt_sources_list /etc/apt/sources.list /etc/apt/sources.list.d/*.list
;;
yum-rpm)
docmd yum repolist
......
......@@ -18,6 +18,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
#
# TODO: port or rewrite apt-file
# https://bugzilla.altlinux.org/show_bug.cgi?id=14449
local_content_search()
{
......
......@@ -20,6 +20,10 @@ Conflicts: epm
Provides: upm
%if %_vendor == "alt"
Requires: apt rpm apt-repo
%endif
%description
Etersoft EPM is the package manager for any platform
and any platform version. It provides
......
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