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()
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()
{
assure_exists apt-add-repository software-properties-common
......@@ -401,6 +410,10 @@ case $BASEDISTRNAME in
"astra")
__epm_addrepo_astra $repo
return
;;
"apk")
__epm_addrepo_alpine "$repo" || return
;;
esac
case $PMTYPE in
......
......@@ -127,6 +127,9 @@ case $PMTYPE in
urpm-rpm)
docmd urpmq --list-media active --list-url
;;
apk)
cat /etc/apk/repositories
;;
zypper-rpm)
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