Commit 95234ce2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repo add: add Alpine support

parent 92d5f890
...@@ -341,6 +341,15 @@ __epm_addrepo_astra() ...@@ -341,6 +341,15 @@ __epm_addrepo_astra()
return return
} }
__epm_addrepo_alpine()
{
local repo="$1"
is_url "$repo" || fatal "Only URL is supported"
epm repo list --quiet | grep -q -F "$repo" && return 0
echo "$repo" | sudocmd tee -a /etc/apk/repositories
}
__epm_addrepo_deb() __epm_addrepo_deb()
{ {
assure_exists apt-add-repository software-properties-common assure_exists apt-add-repository software-properties-common
...@@ -401,6 +410,10 @@ case $BASEDISTRNAME in ...@@ -401,6 +410,10 @@ case $BASEDISTRNAME in
"astra") "astra")
__epm_addrepo_astra $repo __epm_addrepo_astra $repo
return return
;;
"apk")
__epm_addrepo_alpine "$repo" || return
;;
esac esac
case $PMTYPE in case $PMTYPE in
......
...@@ -127,6 +127,9 @@ case $PMTYPE in ...@@ -127,6 +127,9 @@ case $PMTYPE in
urpm-rpm) urpm-rpm)
docmd urpmq --list-media active --list-url docmd urpmq --list-media active --list-url
;; ;;
apk)
cat /etc/apk/repositories
;;
zypper-rpm) zypper-rpm)
docmd zypper sl -d docmd zypper sl -d
;; ;;
......
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